Final test added to get to 100% coverage for groups

This commit is contained in:
Paulus Schoutsen 2014-11-23 17:13:16 -08:00
parent c6cb2c27bd
commit fa1b5b846e

View File

@ -80,6 +80,9 @@ class TestComponentsGroup(unittest.TestCase):
self.hass, 'chromecasts',
['cast.living_room', 'cast.bedroom']))
# Try to setup an empty group
self.assertFalse(group.setup_group(self.hass, 'nothing', []))
def test__get_group_type(self):
""" Test _get_group_type method. """
self.assertEqual('on_off', group._get_group_type(comps.STATE_ON))