WIP Fix pylint and PEP257 issues (tests) (#4120)

* Fix pylint and PEP257 issues

* More PEP257 fixes
This commit is contained in:
Fabian Affolter 2016-12-02 06:45:19 +01:00 committed by Paulus Schoutsen
parent 443553ff16
commit 51e20c92f9
19 changed files with 89 additions and 58 deletions

View file

@ -8,10 +8,11 @@ import homeassistant.components.automation as automation
from tests.common import get_test_home_assistant
# pylint: disable=invalid-name
class TestAutomationNumericState(unittest.TestCase):
"""Test the event automation."""
def setUp(self): # pylint: disable=invalid-name
def setUp(self):
"""Setup things to be run when tests are started."""
self.hass = get_test_home_assistant()
self.hass.config.components.append('group')
@ -451,8 +452,8 @@ class TestAutomationNumericState(unittest.TestCase):
'service': 'test.automation',
'data_template': {
'some': '{{ trigger.%s }}' % '}} - {{ trigger.'.join((
'platform', 'entity_id', 'below', 'above',
'from_state.state', 'to_state.state'))
'platform', 'entity_id', 'below', 'above',
'from_state.state', 'to_state.state'))
},
}
}