#NEWLINE# def test_update_duplicate_request_discarded( self ) : #NEWLINE# #INDENT# duplicate_req = copy . deepcopy ( self . fake_request ) #NEWLINE# duplicate_req [ 'state' ] = 'discarded' #NEWLINE# with nested ( mock . patch ( ( '%s.pushmanager.core.git.GitQueue.verify_branch_failure' % __name__ ) ) , mock . patch ( ( '%s.pushmanager.core.git.GitQueue.verify_branch_successful' % __name__ ) ) , self . mocked_update_request ( self . fake_request , duplicate_req ) ) : #NEWLINE# #INDENT# T . assert_equal ( pushmanager . core . git . GitQueue . verify_branch_failure . call_count , 0 ) #NEWLINE# T . assert_equal ( pushmanager . core . git . GitQueue . verify_branch_successful . call_count , 1 )