Tests should all use test HA

This commit is contained in:
Paulus Schoutsen committed 2016-02-14 15:08:23 -08:00
1 parent bade0e0d71
commit 09ab3e95c0
52 files changed
+170 -125

No files matched your search

+3 -2
View File
@@ -7,18 +7,19 @@ Tests the group compoments.
# pylint: disable=protected-access,too-many-public-methods
import unittest
import homeassistant.core as ha
from homeassistant.const import (
STATE_ON, STATE_OFF, STATE_HOME, STATE_UNKNOWN, ATTR_ICON, ATTR_HIDDEN)
import homeassistant.components.group as group
from tests.common import get_test_home_assistant
class TestComponentsGroup(unittest.TestCase):
""" Tests homeassistant.components.group module. """
def setUp(self): # pylint: disable=invalid-name
""" Init needed objects. """
self.hass = ha.HomeAssistant()
self.hass = get_test_home_assistant()
self.hass.states.set('light.Bowl', STATE_ON)
self.hass.states.set('light.Ceiling', STATE_OFF)