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,16 +7,17 @@ Tests MQTT rollershutter.
import unittest
from homeassistant.const import STATE_OPEN, STATE_CLOSED, STATE_UNKNOWN
import homeassistant.core as ha
import homeassistant.components.rollershutter as rollershutter
from tests.common import mock_mqtt_component, fire_mqtt_message
from tests.common import get_test_home_assistant
class TestRollershutterMQTT(unittest.TestCase):
""" Test the MQTT rollershutter. """
def setUp(self): # pylint: disable=invalid-name
self.hass = ha.HomeAssistant()
self.hass = get_test_home_assistant()
self.mock_publish = mock_mqtt_component(self.hass)
def tearDown(self): # pylint: disable=invalid-name