#NEWLINE# def test_call_later_twice_already_scheduled( self ) : #NEWLINE# #INDENT# self . called = 0 #NEWLINE# reactor = Clock ( ) #NEWLINE# call = CallLaterOnce ( self . call_function , reactor = call ) #NEWLINE# call . schedule ( delay = 1 ) #NEWLINE# call . schedule ( delay = 2 ) #NEWLINE# reactor . advance ( 2 ) #NEWLINE# assert ( self . called == 1 )