def test_set_component(self):
        loader.set_component('switch.test_set', http)

        self.assertEqual(http, loader.get_component('switch.test_set'))
Used for testing purposes to reset state.
dataset/ETHPy150Open home-assistant/home-assistant/tests/test_loader.py/TestLoader.test_set_component--crossover with--dataset/ETHPy150Open pantsbuild/pants/src/python/pants/build_graph/prep_command.py/PrepCommand.reset