def test_is_on(self):
        self.assertTrue(comps.is_on(self.hass, 'light.Bowl'))
        self.assertFalse(comps.is_on(self.hass, 'light.Ceiling'))
        self.assertTrue(comps.is_on(self.hass))
Test is_on method.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_init.py/TestComponentsCore.test_is_on