#NEWLINE# def test_cleanPendingSpinsReactor( self ) : #NEWLINE# #INDENT# '\n        During pending-call cleanup, the reactor will be spun twice with an\n        instant timeout. This is not a requirement, it is only a test for\n        current behavior. Hopefully Trial will eventually not do this kind of\n        reactor stuff.\n        ' #NEWLINE# reactor = StubReactor ( [ ] ) #NEWLINE# jan = _Janitor ( None , None , reactor = reactor ) #NEWLINE# jan . _cleanPending ( ) #NEWLINE# self . assertEquals ( reactor . iterations , [ 0 , 0 ] )