'C{reactor.stop()} raises L{RuntimeError} when called after the reactor
has been stopped.'

def test_stopWhenAlreadyStopped(self):

    reactor = self.buildReactor()
    reactor.callWhenRunning(reactor.stop)
    self.runReactor(reactor)
    self.assertRaises(RuntimeError, reactor.stop)
