#NEWLINE# def test_lists_without_model_getters( self ) : #NEWLINE# #INDENT# builder = self . get_builder ( ) #NEWLINE# builder . get_query ( ) . get = mock . MagicMock ( return_value = [ { #NEWLINE# #INDENT# 'name' : 'bar' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'baz' , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# builder . set_model ( self . get_mock_model ( ) ) #NEWLINE# builder . get_model ( ) . has_get_mutator = mock . MagicMock ( return_value = False ) #NEWLINE# result = builder . lists ( 'name' ) #NEWLINE# self . assertEqual ( [ 'bar' , 'baz' ] , result ) #NEWLINE# builder . get_query ( ) . get . assert_called_once_with ( [ 'name' ] )