#NEWLINE# def test_configure_components( self ) : #NEWLINE# #INDENT# from grease import World #NEWLINE# comp1 = TestComponent ( ) #NEWLINE# comp2 = TestComponent ( ) #NEWLINE# comp3 = TestComponent ( ) #NEWLINE# world = World ( ) #NEWLINE# self . assertEqual ( len ( world . components ) , 0 ) #NEWLINE# world . components . one = comp1 #NEWLINE# world . components . two = comp2 #NEWLINE# world . components . three = comp3 #NEWLINE# self . assertEqual ( list ( world . components ) , [ comp1 , comp2 , comp3 ] ) #NEWLINE# self . assertTrue ( ( comp1 . world is world ) ) #NEWLINE# self . assertTrue ( ( comp2 . world is world ) ) #NEWLINE# self . assertTrue ( ( world . world is world ) )