def test_register(self):  # noqa D102
        HandlerBase.register(TestHandlerBase.FooHandler)
        HandlerBase.register(TestHandlerBase.BarHandler)

        assert HandlerBase.get_handler_names() == [
            TestHandlerBase.FooHandler.__name__,
            TestHandlerBase.BarHandler.__name__,
        ]
 def test_initial_setup(self):  # noqa D102
     assert set(HandlerBase.get_handler_names()) == {"YUM", "PIP3"}
Exemple #3
0
 def test_initial_setup(self):
     assert set(HandlerBase.get_handler_names()) == {'YUM', 'PIP3'}