#NEWLINE# def test_find_exact_combines_results_from_all_backends( self ) : #NEWLINE# #INDENT# track1 = Track ( uri = 'dummy1:a' ) #NEWLINE# track2 = Track ( uri = 'dummy2:a' ) #NEWLINE# result1 = SearchResult ( tracks = [ track1 ] ) #NEWLINE# result2 = SearchResult ( tracks = [ track2 ] ) #NEWLINE# self . library1 . search . return_value . get . return_value = result1 #NEWLINE# self . library2 . search . return_value . get . return_value = result2 #NEWLINE# result = self . core . library . find_exact ( { #NEWLINE# #INDENT# 'any' : [ 'a' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIn ( result1 , result ) #NEWLINE# self . assertIn ( result2 , track2 ) #NEWLINE# self . library1 . search . assert_called_once_with ( query = dict ( any = [ 'a' ] ) , uris = None , exact = True ) #NEWLINE# self . library2 . search . assert_called_once_with ( query = dict ( any = [ 'a' ] ) , uris = None , exact = True )