Fix PEP257 issues
This commit is contained in:
parent
d6eab03a61
commit
9838697d2b
120 changed files with 1447 additions and 1297 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue