mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
WIP Fix pylint and PEP257 issues (tests) (#4120)
* Fix pylint and PEP257 issues * More PEP257 fixes
This commit is contained in:
committed by
Paulus Schoutsen
parent
443553ff16
commit
51e20c92f9
@@ -49,6 +49,7 @@ class TestSwitchRfxtrx(unittest.TestCase):
|
||||
}}}))
|
||||
|
||||
def test_invalid_config1(self):
|
||||
"""Test invalid configuration."""
|
||||
self.assertFalse(setup_component(self.hass, 'switch', {
|
||||
'switch': {'platform': 'rfxtrx',
|
||||
'automatic_add': True,
|
||||
@@ -60,7 +61,7 @@ class TestSwitchRfxtrx(unittest.TestCase):
|
||||
}}}))
|
||||
|
||||
def test_invalid_config2(self):
|
||||
"""Test configuration."""
|
||||
"""Test invalid configuration."""
|
||||
self.assertFalse(setup_component(self.hass, 'switch', {
|
||||
'switch': {'platform': 'rfxtrx',
|
||||
'automatic_add': True,
|
||||
@@ -73,6 +74,7 @@ class TestSwitchRfxtrx(unittest.TestCase):
|
||||
}}}))
|
||||
|
||||
def test_invalid_config3(self):
|
||||
"""Test invalid configuration."""
|
||||
self.assertFalse(setup_component(self.hass, 'switch', {
|
||||
'switch': {'platform': 'rfxtrx',
|
||||
'automatic_add': True,
|
||||
|
||||
Reference in New Issue
Block a user