838b09bb8f61f46b632df4d7a59b77d79611f375,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
group_state.attributes.get(ATTR_ICON))
self.assertTrue(group_state.attributes.get(group.ATTR_VIEW))
self.assertTrue(group_state.attributes.get(ATTR_HIDDEN))
self.assertEqual(1, group_state.attributes.get(group.ATTR_ORDER))
group_state = self.hass.states.get(
group.ENTITY_ID_FORMAT.format("test_group"))
self.assertEqual(STATE_UNKNOWN, group_state.state)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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
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