287f9c9bda567abeb5ed45d08df3eccabde13d4e,tests/components/test_group.py,TestComponentsGroup,test_setup,#TestComponentsGroup#,216

Before Change


        test_group = group.Group(
            self.hass, "init_group", ["light.Bowl", "light.Ceiling"], False)

        _setup_component(self.hass, "group", {"group": {
                    "second_group": {
                        "entities": "light.Bowl, " + test_group.entity_id,
                        "icon": "mdi:work",
                        "view": True,
                    },
                    "test_group": "hello.world,sensor.happy",
                    "empty_group": {"name": "Empty Group", "entities": None},
                }
            })

        group_state = self.hass.states.get(
            group.ENTITY_ID_FORMAT.format("second_group"))
        self.assertEqual(STATE_ON, group_state.state)

After Change


        test_group = group.Group(
            self.hass, "init_group", ["light.Bowl", "light.Ceiling"], False)

        group_conf = OrderedDict()
        group_conf["second_group"] = {
                        "entities": "light.Bowl, " + test_group.entity_id,
                        "icon": "mdi:work",
                        "view": True,
                    }
        group_conf["test_group"] = "hello.world,sensor.happy"
        group_conf["empty_group"] = {"name": "Empty Group", "entities": None}

        _setup_component(self.hass, "group", {"group": group_conf})

        group_state = self.hass.states.get(
            group.ENTITY_ID_FORMAT.format("second_group"))
        self.assertEqual(STATE_ON, group_state.state)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 19

Instances


Project Name: home-assistant/home-assistant
Commit Name: 287f9c9bda567abeb5ed45d08df3eccabde13d4e
Time: 2016-09-21
Author: paulus@paulusschoutsen.nl
File Name: tests/components/test_group.py
Class Name: TestComponentsGroup
Method Name: test_setup


Project Name: home-assistant/home-assistant
Commit Name: f0ec51711c85f94753577ffaeb79cf849da06cdc
Time: 2016-09-11
Author: paulus@paulusschoutsen.nl
File Name: tests/components/test_group.py
Class Name: TestComponentsGroup
Method Name: test_setup


Project Name: home-assistant/home-assistant
Commit Name: 287f9c9bda567abeb5ed45d08df3eccabde13d4e
Time: 2016-09-21
Author: paulus@paulusschoutsen.nl
File Name: tests/components/test_group.py
Class Name: TestComponentsGroup
Method Name: test_setup


Project Name: home-assistant/home-assistant
Commit Name: 838b09bb8f61f46b632df4d7a59b77d79611f375
Time: 2016-09-11
Author: paulus@paulusschoutsen.nl
File Name: tests/components/test_group.py
Class Name: TestComponentsGroup
Method Name: test_setup