'During pending-call cleanup, the reactor will be spun twice with an
instant timeout. This is not a requirement, it is only a test for
current behavior. Hopefully Trial will eventually not do this kind of
reactor stuff.'

def test_cleanPendingSpinsReactor(self):

    reactor = StubReactor([])
    jan = _Janitor(None, None, reactor=reactor)
    jan._cleanPending()
    self.assertEqual(reactor.iterations, [0, 0])
