summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-11-13 16:00:27 -0800
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-11-13 16:00:27 -0800
commit37a4eb06609421f5908d125b5bbe7013a19d55e8 (patch)
tree780e135f8a723e1e80eb65e6873c7b11291f2411 /tests/unittests/test_handler
parent8ae9c57ca05a0f99131a6693c109cbb52c0f0d4d (diff)
parent5c63171d2ac45a1931130d14e33579beb6902fdb (diff)
downloadvyos-cloud-init-37a4eb06609421f5908d125b5bbe7013a19d55e8.tar.gz
vyos-cloud-init-37a4eb06609421f5908d125b5bbe7013a19d55e8.zip
Create a utility testcase class that fixes some of the 2.6 missing pieces
- Add a helper testcase class that can add additional features into the   unit test class as we need for features that are useful to have which   starts with features that are missing including assertIn and assertNotIn
Diffstat (limited to 'tests/unittests/test_handler')
-rw-r--r--tests/unittests/test_handler/test_handler_power_state.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unittests/test_handler/test_handler_power_state.py b/tests/unittests/test_handler/test_handler_power_state.py
index 1149fedc..f6e37fa5 100644
--- a/tests/unittests/test_handler/test_handler_power_state.py
+++ b/tests/unittests/test_handler/test_handler_power_state.py
@@ -1,9 +1,9 @@
-from unittest import TestCase
-
from cloudinit.config import cc_power_state_change as psc
+from tests.unittests import helpers as t_help
+
-class TestLoadPowerState(TestCase):
+class TestLoadPowerState(t_help.TestCase):
def setUp(self):
super(self.__class__, self).setUp()