aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-11-19 18:46:36 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-12-04 15:43:15 +0000
commit6038fdf8617319a13b0b42f3283ec2066d54b283 (patch)
tree302bab5062039e705b875a90a0de6551afe1aceb /tests
parentb279dcdb1ddd36d5ea254503ae056e484d48b7c2 (diff)
downloadsos-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')
-rw-r--r--tests/utilities_tests.py2
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__)