summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-11-24 16:41:21 -0800
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-11-24 16:41:21 -0800
commit1db41a6f5283d38dff6de0b0421d51eac869a39c (patch)
tree8f5a38b8f3587d75b6c391d1dd560adab022271f
parent033eb26e698ebe6d003732ac4a64cefbdbf45f4e (diff)
downloadvyos-cloud-init-1db41a6f5283d38dff6de0b0421d51eac869a39c.tar.gz
vyos-cloud-init-1db41a6f5283d38dff6de0b0421d51eac869a39c.zip
Use assertNotEqual which exists on python2.6
Instead of using assertGreater which is new on python2.7 just use assertNotEqual which does exist on python2.6 to perform the same/similar operation. This makes the unittest not break on python2.6
-rw-r--r--tests/unittests/test_handler/test_handler_debug.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_handler/test_handler_debug.py b/tests/unittests/test_handler/test_handler_debug.py
index bd9e29d8..8891ca04 100644
--- a/tests/unittests/test_handler/test_handler_debug.py
+++ b/tests/unittests/test_handler/test_handler_debug.py
@@ -59,7 +59,7 @@ class TestDebug(t_help.FilesystemMockingTestCase):
cc_debug.handle('cc_debug', cfg, cc, LOG, [])
contents = util.load_file('/var/log/cloud-init-debug.log')
# Some basic sanity tests...
- self.assertGreater(len(contents), 0)
+ self.assertNotEqual(0, len(contents))
for k in cfg.keys():
self.assertIn(k, contents)