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

        self.assertEqual(http, loader.get_component('switch.test_set'))
Test if set_component works.
dataset/ETHPy150Open home-assistant/home-assistant/tests/test_loader.py/TestLoader.test_set_component