summaryrefslogtreecommitdiff
path: root/tests/unittests/helpers.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-02-07 16:34:04 -0800
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-02-07 16:34:04 -0800
commitf9582464b157ffb0087b18910af11aa6ed49abcd (patch)
treecf60c16e5eb2f0333b6662188292d180b6722132 /tests/unittests/helpers.py
parent2983a26ecf9716dc957ec4bacf15544072774190 (diff)
downloadvyos-cloud-init-f9582464b157ffb0087b18910af11aa6ed49abcd.tar.gz
vyos-cloud-init-f9582464b157ffb0087b18910af11aa6ed49abcd.zip
Add a bunch of new tests
Diffstat (limited to 'tests/unittests/helpers.py')
-rw-r--r--tests/unittests/helpers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unittests/helpers.py b/tests/unittests/helpers.py
index 5b4f4208..945c1500 100644
--- a/tests/unittests/helpers.py
+++ b/tests/unittests/helpers.py
@@ -29,6 +29,12 @@ if (_PY_MAJOR, _PY_MINOR) <= (2, 6):
standardMsg = standardMsg % (member, container)
self.fail(self._formatMessage(msg, standardMsg))
+ def assertIsNone(self, value, msg=None):
+ if value is not None:
+ standardMsg = '%r is not None'
+ standardMsg = standardMsg % (value)
+ self.fail(self._formatMessage(msg, standardMsg))
+
else:
class TestCase(unittest.TestCase):
pass