#NEWLINE# def test_clear_pickme_conflict_details( self ) : #NEWLINE# #INDENT# GQ = pushmanager . core . git . GitQueue ( ) #NEWLINE# sample_req = { #NEWLINE# #INDENT# 'tags' : 'asdasd,conflict-master,git-ok,conflict-pickme' , #NEWLINE# 'conflicts' : 'This conflicts with everything!' , #NEWLINE# #UNINDENT# } #NEWLINE# clean_req = { #NEWLINE# #INDENT# 'tags' : 'asdasd,git-ok' , #NEWLINE# 'conflicts' : '' , #NEWLINE# #UNINDENT# } #NEWLINE# with mock . patch ( 'pushmanager.core.git.GitQueue._update_request' ) as update_req : #NEWLINE# #INDENT# GQ . _clear_pickme_conflict_details ( sample_req ) #NEWLINE# update_req . assert_called_with ( sample_req , sample_req )