cac555fc69717c049aac0fcd128fe52190f90313,tests/components/light/test_rfxtrx.py,TestLightRfxtrx,test_default_config,#TestLightRfxtrx#,26

Before Change



    def test_default_config(self):
        Test with 0 lights.
        config = {"devices": {}}
        devices = []

        def add_dev_callback(devs):
            Add a callback to add devices.
            for dev in devs:
                devices.append(dev)

        rfxtrx.setup_platform(self.hass, config, add_dev_callback)
        self.assertEqual(0, len(devices))

    def test_one_sensor(self):
        Test with 1 light.

After Change



    def test_default_config(self):
        Test with 0 switches.
        self.assertTrue(_setup_component(self.hass, "light", {
            "light": {"platform": "rfxtrx",
                      "devices": {}}}))
        self.assertEqual(0, len(rfxtrx_core.RFX_DEVICES))

    def test_one_light(self):
        Test with 1 light.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: home-assistant/home-assistant
Commit Name: cac555fc69717c049aac0fcd128fe52190f90313
Time: 2016-04-08
Author: mail@dahoiv.net
File Name: tests/components/light/test_rfxtrx.py
Class Name: TestLightRfxtrx
Method Name: test_default_config


Project Name: home-assistant/home-assistant
Commit Name: 769d9584647c1092b524a8f53f3a732b2e4488ca
Time: 2016-04-10
Author: mail@dahoiv.net
File Name: tests/components/sensor/test_rfxtrx.py
Class Name: TestSensorRfxtrx
Method Name: test_discover_sensor


Project Name: home-assistant/home-assistant
Commit Name: 769d9584647c1092b524a8f53f3a732b2e4488ca
Time: 2016-04-10
Author: mail@dahoiv.net
File Name: tests/components/sensor/test_rfxtrx.py
Class Name: TestSensorRfxtrx
Method Name: test_default_config


Project Name: home-assistant/home-assistant
Commit Name: cac555fc69717c049aac0fcd128fe52190f90313
Time: 2016-04-08
Author: mail@dahoiv.net
File Name: tests/components/switch/test_rfxtrx.py
Class Name: TestSwitchRfxtrx
Method Name: test_default_config