From 41d0f95d9ad459aff30c8bc8040434579dfa22e8 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 12 Nov 2015 23:03:56 -0800 Subject: [PATCH] Move core light test to correct dir --- tests/components/{test_light.py => light/test_init.py} | 0 tests/components/light/test_mqtt.py | 9 +++++---- 2 files changed, 5 insertions(+), 4 deletions(-) rename tests/components/{test_light.py => light/test_init.py} (100%) diff --git a/tests/components/test_light.py b/tests/components/light/test_init.py similarity index 100% rename from tests/components/test_light.py rename to tests/components/light/test_init.py diff --git a/tests/components/light/test_mqtt.py b/tests/components/light/test_mqtt.py index dc87c90e896..f4f64c68acc 100644 --- a/tests/components/light/test_mqtt.py +++ b/tests/components/light/test_mqtt.py @@ -94,7 +94,7 @@ class TestLightMQTT(unittest.TestCase): state = self.hass.states.get('light.test') self.assertEqual(STATE_OFF, state.state) - + fire_mqtt_message(self.hass, 'test_light_rgb/status', 'on') self.hass.pool.block_till_done() @@ -106,18 +106,19 @@ class TestLightMQTT(unittest.TestCase): self.assertEqual(100, light_state.attributes['brightness']) - xy = color_util.color_RGB_to_xy(125,125,125) + xy = color_util.color_RGB_to_xy(125, 125, 125) fire_mqtt_message(self.hass, 'test_light_rgb/status', 'on') self.hass.pool.block_till_done() - fire_mqtt_message(self.hass, 'test_light_rgb/rgb/status', '125,125,125') + fire_mqtt_message(self.hass, 'test_light_rgb/rgb/status', + '125,125,125') self.hass.pool.block_till_done() light_state = self.hass.states.get('light.test') self.assertEqual(xy, light_state.attributes['xy_color']) - + def test_sending_mqtt_commands_and_optimistic(self): self.assertTrue(light.setup(self.hass, { 'light': {