mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 21:10:25 +00:00
Fix PEP257 issues
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
"""
|
||||
tests.components.test_input_boolean
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Tests input_boolean component.
|
||||
"""
|
||||
"""The tests for the input_boolean component."""
|
||||
# pylint: disable=too-many-public-methods,protected-access
|
||||
import unittest
|
||||
|
||||
@@ -15,13 +10,14 @@ from tests.common import get_test_home_assistant
|
||||
|
||||
|
||||
class TestInputBoolean(unittest.TestCase):
|
||||
""" Test the input boolean module. """
|
||||
"""Test the input boolean module."""
|
||||
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
def tearDown(self): # pylint: disable=invalid-name
|
||||
""" Stop down stuff we started. """
|
||||
"""Stop everything that was started."""
|
||||
self.hass.stop()
|
||||
|
||||
def test_config(self):
|
||||
@@ -42,7 +38,7 @@ class TestInputBoolean(unittest.TestCase):
|
||||
}))
|
||||
|
||||
def test_methods(self):
|
||||
""" Test is_on, turn_on, turn_off methods. """
|
||||
"""Test is_on, turn_on, turn_off methods."""
|
||||
self.assertTrue(input_boolean.setup(self.hass, {
|
||||
'input_boolean': {
|
||||
'test_1': None,
|
||||
@@ -68,6 +64,7 @@ class TestInputBoolean(unittest.TestCase):
|
||||
input_boolean.is_on(self.hass, entity_id))
|
||||
|
||||
def test_config_options(self):
|
||||
"""Test configuration options."""
|
||||
count_start = len(self.hass.states.entity_ids())
|
||||
|
||||
self.assertTrue(input_boolean.setup(self.hass, {
|
||||
|
||||
Reference in New Issue
Block a user