aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utilities_tests.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-03-28 18:08:59 +0000
committerBryn M. Reeves <bmr@redhat.com>2013-03-28 18:08:59 +0000
commit29e180fbc291686ee991952005c84c4b0d216a86 (patch)
tree1d6432854825efb97d816bc713145d052c8fce04 /tests/utilities_tests.py
parent4f0da96964fec5bdc2b66d4117aa9773e5a12a4d (diff)
downloadsos-29e180fbc291686ee991952005c84c4b0d216a86.tar.gz
Make more names pep8 compliant across the tree
Fix policy and utility function, method and variable names to use lower case underscored style instead of camelCase. Related to Issue #112. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/utilities_tests.py')
-rw-r--r--tests/utilities_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py
index 7b5a6a3b..5520bb16 100644
--- a/tests/utilities_tests.py
+++ b/tests/utilities_tests.py
@@ -2,7 +2,7 @@ import os.path
import unittest
from StringIO import StringIO
-from sos.utilities import grep, DirTree, checksum, get_hash_name, is_executable, sosGetCommandOutput, find, tail, shell_out
+from sos.utilities import grep, DirTree, checksum, get_hash_name, is_executable, sos_get_command_output, find, tail, shell_out
import sos
TEST_DIR = os.path.dirname(__file__)
@@ -76,13 +76,13 @@ class ExecutableTest(unittest.TestCase):
def test_output(self):
path = os.path.join(TEST_DIR, 'test_exe.py')
- ret, out, junk = sosGetCommandOutput(path)
+ ret, out, junk = sos_get_command_output(path)
self.assertEquals(ret, 0)
self.assertEquals(out, "executed\n")
def test_output_non_exe(self):
path = os.path.join(TEST_DIR, 'utility_tests.py')
- ret, out, junk = sosGetCommandOutput(path)
+ ret, out, junk = sos_get_command_output(path)
self.assertEquals(ret, 127)
self.assertEquals(out, "")