'C{reactor.crash()} stops the reactor and does not fire shutdown
triggers.'

def test_crash(self):

    reactor = self.buildReactor()
    events = []
    reactor.addSystemEventTrigger('before', 'shutdown', (lambda : events.append(('before', 'shutdown'))))
    reactor.callWhenRunning(reactor.callLater, 0, reactor.crash)
    self.runReactor(reactor)
    self.assertFalse(reactor.running)
    self.assertFalse(events, 'Shutdown    triggers    invoked    but    they    should    not    have    been.')
