'C{reactor.run()} raises L{ReactorAlreadyRunning} when called when
the reactor is already running.'

def test_multipleRun(self):

    events = []
    def reentrantRun():
        self.assertRaises(ReactorAlreadyRunning, reactor.run)
        events.append('tested')
    reactor = self.buildReactor()
    reactor.callWhenRunning(reentrantRun)
    reactor.callWhenRunning(reactor.stop)
    self.runReactor(reactor)
    self.assertEqual(events, ['tested'])
