'Test that reactor plugins are returned from L{getReactorTypes}'

def test_getPluginReactorTypes(self):

    name = 'fakereactortest'
    package = (__name__ + '.fakereactor')
    description = 'description'
    self.pluginResults = [reactors.Reactor(name, package, description)]
    reactorTypes = reactors.getReactorTypes()
    self.assertEqual(self.pluginCalls, [(reactors.IReactorInstaller, None)])
    for r in reactorTypes:
        if (r.shortName == name):
            self.assertEqual(r.description, description)
            break
    else:
        self.fail('Reactor    plugin    not    present    in    getReactorTypes()    result')
