'C{reactor.run()} raises L{ReactorNotRestartable} when called when
the reactor is being run after getting stopped priorly.'

def test_runAfterStop(self):

    events = []
    def restart():
        self.assertRaises(ReactorNotRestartable, reactor.run)
        events.append('tested')
    reactor = self.buildReactor()
    reactor.callWhenRunning(reactor.stop)
    reactor.addSystemEventTrigger('after', 'shutdown', restart)
    self.runReactor(reactor)
    self.assertEqual(events, ['tested'])
