'C{reactor.iterate()} does not block.'

def test_iterate(self):

    reactor = self.buildReactor()
    t = reactor.callLater(5, reactor.crash)
    start = time.time()
    reactor.iterate(0)
    elapsed = (time.time() - start)
    self.assertTrue((elapsed < 2))
    t.cancel()
