#NEWLINE# def testDir( self ) : #NEWLINE# #INDENT# 'Test _Dir().' #NEWLINE# entity_names = [ 'ello' , 'there' , 'ol' , 'chap' ] #NEWLINE# all_entities = [ ] #NEWLINE# class Junk ( object ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# for entity_name in entity_names : #NEWLINE# #INDENT# e = Junk ( ) #NEWLINE# e . name = entity_name #NEWLINE# all_entities . append ( e ) #NEWLINE# #UNINDENT# mock_models = self . mox . CreateMockAnything ( ) #NEWLINE# mock_settings = self . mox . CreateMockAnything ( ) #NEWLINE# self . settings . _module . models = mock_models #NEWLINE# mock_models . Settings = mock_settings #NEWLINE# mock_settings . GetAll ( ) . AndReturn ( all_entities ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( entity_names , self . settings . _Dir ( ) ) #NEWLINE# self . mox . VerifyAll ( )