This commit is contained in:
Fabian Affolter 2016-09-23 10:28:16 +02:00 committed by GitHub
parent 0065dc0cd7
commit 3d31d26b6c
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
"""The tests for SleepIQ binary_sensor platform.""" """The tests for SleepIQ binary sensor platform."""
import unittest import unittest
from unittest.mock import MagicMock from unittest.mock import MagicMock
@ -32,7 +32,7 @@ class TestSleepIQBinarySensorSetup(unittest.TestCase):
@requests_mock.Mocker() @requests_mock.Mocker()
def test_setup(self, mock): def test_setup(self, mock):
"""Test for succesfully setting up the SleepIQ platform.""" """Test for successfully setting up the SleepIQ platform."""
mock_responses(mock) mock_responses(mock)
sleepiq.setup_platform(self.hass, sleepiq.setup_platform(self.hass,

View file

@ -32,7 +32,7 @@ class TestSleepIQSensorSetup(unittest.TestCase):
@requests_mock.Mocker() @requests_mock.Mocker()
def test_setup(self, mock): def test_setup(self, mock):
"""Test for succesfully setting up the SleepIQ platform.""" """Test for successfully setting up the SleepIQ platform."""
mock_responses(mock) mock_responses(mock)
sleepiq.setup_platform(self.hass, sleepiq.setup_platform(self.hass,

View file

@ -28,7 +28,7 @@ class TestSleepIQ(unittest.TestCase):
"""Tests the SleepIQ component.""" """Tests the SleepIQ component."""
def setUp(self): def setUp(self):
"""Initialize values for this testcase class.""" """Initialize values for this test case class."""
self.hass = get_test_home_assistant() self.hass = get_test_home_assistant()
self.username = 'foo' self.username = 'foo'
self.password = 'bar' self.password = 'bar'