#NEWLINE# def test_backend_returns_mapping_containing_wrong_types( self , logger ) : #NEWLINE# #INDENT# uri = 'dummy:/1' #NEWLINE# self . library . get_images . return_value . get . return_value = { #NEWLINE# #INDENT# uri : 'abc' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# uri : tuple ( ) , #NEWLINE# #UNINDENT# } , self . core . library . get_images ( [ uri ] ) ) #NEWLINE# logger . error . assert_called_with ( mock . ANY , 'DummyBackend' , mock . ANY )