From 1db41a6f5283d38dff6de0b0421d51eac869a39c Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 24 Nov 2014 16:41:21 -0800 Subject: 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 --- tests/unittests/test_handler/test_handler_debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unittests/test_handler') 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) -- cgit v1.2.3