'Importing L{twisted.internet.reactor} installs the default reactor if
none is installed.'

def test_reactor(self):

    installed = []
    def installer():
        installed.append(True)
        return install()
    self.patch(default, 'install', installer)
    with NoReactor():
        from twisted.internet import reactor
        self.assertTrue(IReactorCore.providedBy(reactor))
        self.assertEqual(installed, [True])
