#NEWLINE# def test_step_components( self ) : #NEWLINE# #INDENT# from grease import World , Entity #NEWLINE# world = World ( ) #NEWLINE# comp1 = world . components . one = TestComponent ( ) #NEWLINE# comp2 = world . components . two = TestComponent ( ) #NEWLINE# entity = Entity ( world ) #NEWLINE# self . assertTrue ( ( comp1 . runtime == comp2 . runtime == 0 ) , comp1 . runtime ) #NEWLINE# world . step ( 0.05 ) #NEWLINE# self . assertEqual ( comp1 . runtime , 0.05 ) #NEWLINE# self . assertEqual ( comp2 . runtime , 0.05 ) #NEWLINE# world . step ( 0.06 ) #NEWLINE# self . assertEqual ( comp1 . runtime , 0.11 ) #NEWLINE# self . assertEqual ( comp2 . runtime , 0.11 )