#NEWLINE# def test_activate( self ) : #NEWLINE# #INDENT# from grease import World #NEWLINE# world = World ( master_clock = TestClock ( ) ) #NEWLINE# sys1 = world . systems . one = TestSystem ( ) #NEWLINE# sys2 = world . systems . two = TestSystem ( ) #NEWLINE# manager = TestModeManager ( ) #NEWLINE# self . assertFalse ( world . active ) #NEWLINE# world . activate ( manager ) #NEWLINE# self . assertTrue ( ( world . manager is manager ) , world . manager ) #NEWLINE# self . assertTrue ( world . active ) #NEWLINE# self . assertTrue ( ( ( world . tick , None ) in world . master_clock . scheduled ) ) #NEWLINE# self . assertTrue ( ( sys1 in manager . handlers ) ) #NEWLINE# self . assertTrue ( ( sys2 in manager . handlers ) ) #NEWLINE# return ( world , manager )