1
0
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:
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

@@ -179,6 +179,7 @@ class TestNX584Watcher(unittest.TestCase):
@mock.patch.object(watcher, '_process_zone_event')
def run(fake_process):
"""Run a fake process."""
fake_process.side_effect = StopMe
self.assertRaises(StopMe, watcher._run)
self.assertEqual(fake_process.call_count, 1)
@@ -193,6 +194,7 @@ class TestNX584Watcher(unittest.TestCase):
empty_me = [1, 2]
def fake_run():
"""Fake runner."""
if empty_me:
empty_me.pop()
raise requests.exceptions.ConnectionError()