def test_get_component(self):
        self.assertEqual(http, loader.get_component('http'))

        self.assertIsNotNone(loader.get_component('switch.test'))
Test if get_component works.
dataset/ETHPy150Open home-assistant/home-assistant/tests/test_loader.py/TestLoader.test_get_component