diff options
| author | Ryan Harper <ryan.harper@canonical.com> | 2016-03-03 17:16:13 -0600 |
|---|---|---|
| committer | Ryan Harper <ryan.harper@canonical.com> | 2016-03-03 17:16:13 -0600 |
| commit | 63357ed731710b2418810535d9c991adbaea8dcb (patch) | |
| tree | 5c553b0671669beb204c4edb3d82ebeda78d7cd3 /tests/unittests/test_handler/test_handler_power_state.py | |
| parent | b1046db66bbed6a063f218992449b8abfd1ae99b (diff) | |
| parent | 3d9153d16b194e7a3139c290e723ef17518e617d (diff) | |
| download | vyos-cloud-init-63357ed731710b2418810535d9c991adbaea8dcb.tar.gz vyos-cloud-init-63357ed731710b2418810535d9c991adbaea8dcb.zip | |
Apply pep8, pyflakes fixes for python2 and 3
Update make check target to use pep8, pyflakes, pyflakes3.
Diffstat (limited to 'tests/unittests/test_handler/test_handler_power_state.py')
| -rw-r--r-- | tests/unittests/test_handler/test_handler_power_state.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unittests/test_handler/test_handler_power_state.py b/tests/unittests/test_handler/test_handler_power_state.py index cd376e9c..04ce5687 100644 --- a/tests/unittests/test_handler/test_handler_power_state.py +++ b/tests/unittests/test_handler/test_handler_power_state.py @@ -74,7 +74,7 @@ class TestLoadPowerState(t_help.TestCase): class TestCheckCondition(t_help.TestCase): def cmd_with_exit(self, rc): return([sys.executable, '-c', 'import sys; sys.exit(%s)' % rc]) - + def test_true_is_true(self): self.assertEqual(psc.check_condition(True), True) @@ -94,7 +94,6 @@ class TestCheckCondition(t_help.TestCase): self.assertEqual(mocklog.warn.call_count, 1) - def check_lps_ret(psc_return, mode=None): if len(psc_return) != 3: raise TypeError("length returned = %d" % len(psc_return)) |
