'C{reactor.run()} restarts the reactor after it has been stopped by
C{reactor.crash()}.'

def test_runAfterCrash(self):

    events = []
    def crash():
        events.append('crash')
        reactor.crash()
    reactor = self.buildReactor()
    reactor.callWhenRunning(crash)
    self.runReactor(reactor)
    def stop():
        events.append(('stop', reactor.running))
        reactor.stop()
    reactor.callWhenRunning(stop)
    self.runReactor(reactor)
    self.assertEqual(events, ['crash', ('stop', True)])
