'Test that the L{reactors.installReactor} function correctly returns
the installed reactor.'

def test_installReactorReturnsReactor(self):

    reactor = object()
    def install():
        from twisted import internet
        self.patch(internet, 'reactor', reactor)
    name = 'fakereactortest'
    package = __name__
    description = 'description'
    self.pluginResults = [FakeReactor(install, name, package, description)]
    installed = reactors.installReactor(name)
    self.assertIs(installed, reactor)
