diff options
author | Adam Stokes <adam.stokes@ubuntu.com> | 2014-01-27 05:52:30 -0500 |
---|---|---|
committer | Adam Stokes <adam.stokes@ubuntu.com> | 2014-01-27 05:52:30 -0500 |
commit | 6008191be46e46b4484cf380fdd9459d8318b210 (patch) | |
tree | ea91562936348e23f9aefe78c034587d840309b4 /tests/utilities_tests.py | |
parent | ec1abc03bce003141d13fc448cfc26c831da0d39 (diff) | |
download | sos-6008191be46e46b4484cf380fdd9459d8318b210.tar.gz |
Fix unittests to report on strings and not binary
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Diffstat (limited to 'tests/utilities_tests.py')
-rw-r--r-- | tests/utilities_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py index 3ecf8c2b..04c52412 100644 --- a/tests/utilities_tests.py +++ b/tests/utilities_tests.py @@ -81,7 +81,7 @@ class ExecutableTest(unittest.TestCase): path = os.path.join(TEST_DIR, 'test_exe.py') ret, out, junk = sos_get_command_output(path) self.assertEquals(ret, 0) - self.assertEquals(out, six.b("executed\n")) + self.assertEquals(out, "executed\n") def test_output_non_exe(self): path = os.path.join(TEST_DIR, 'utility_tests.py') @@ -91,7 +91,7 @@ class ExecutableTest(unittest.TestCase): def test_shell_out(self): path = os.path.join(TEST_DIR, 'test_exe.py') - self.assertEquals(six.b("executed\n"), shell_out(path)) + self.assertEquals("executed\n", shell_out(path)) class FindTest(unittest.TestCase): |