#NEWLINE# def test_function_task_immediate( self ) : #NEWLINE# #INDENT# if _debug : #NEWLINE# #INDENT# TestTimeMachine . _debug ( 'test_function_task_immediate' ) #NEWLINE# #UNINDENT# global sample_task_function_called #NEWLINE# ft = FunctionTask ( sample_task_function ) #NEWLINE# sample_task_function_called = 0 #NEWLINE# reset_time_machine ( ) #NEWLINE# ft . install_task ( 0.0 ) #NEWLINE# run_time_machine ( 60.0 ) #NEWLINE# assert ( sample_task_function_called == 1 ) #NEWLINE# assert ( time_machine . current_time == 0.0 )