#NEWLINE# def test_get_images_merges_results( self ) : #NEWLINE# #INDENT# self . library1 . get_images . return_value . get . return_value = { #NEWLINE# #INDENT# 'dummy1:track' : [ Image ( uri = 'uri1' ) ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . library2 . get_images . return_value . get . return_value = { #NEWLINE# #INDENT# 'dummy2:track' : [ Image ( uri = 'uri2' ) ] , #NEWLINE# #UNINDENT# } #NEWLINE# result = self . core . library . get_images ( [ 'dummy1:track' , 'dummy2:track' , 'dummy3:track' , 'dummy4:track' ] ) #NEWLINE# expected = { #NEWLINE# #INDENT# 'dummy1:track' : ( Image ( uri = 'uri1' ) , ) , #NEWLINE# 'dummy2:track' : ( Image ( uri = 'uri2' ) , ) , #NEWLINE# 'dummy3:track' : tuple ( ) , #NEWLINE# 'dummy4:track' : tuple ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( expected , result )