diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-11-19 18:46:36 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-12-04 15:43:15 +0000 |
commit | 6038fdf8617319a13b0b42f3283ec2066d54b283 (patch) | |
tree | 302bab5062039e705b875a90a0de6551afe1aceb /tests/utilities_tests.py | |
parent | b279dcdb1ddd36d5ea254503ae056e484d48b7c2 (diff) | |
download | sos-6038fdf8617319a13b0b42f3283ec2066d54b283.tar.gz |
[policies] move hash determination to policies
It's crazy having the Policy classes call a function in the
utilities module only to have that function then load the Policy
module, call policy.get_preferred_hash_algorithm() and then test
the result.
Get rid of the get_hash_name() function in the utilities module
and simplify the calls in the policies module to obtain the
preferred hash name.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/utilities_tests.py')
-rw-r--r-- | tests/utilities_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py index c4646926..f1b60e2b 100644 --- a/tests/utilities_tests.py +++ b/tests/utilities_tests.py @@ -5,7 +5,7 @@ import unittest import six from six import StringIO -from sos.utilities import grep, get_hash_name, is_executable, sos_get_command_output, find, tail, shell_out +from sos.utilities import grep, is_executable, sos_get_command_output, find, tail, shell_out import sos TEST_DIR = os.path.dirname(__file__) |