From 4ae2d58d728a9185252593d818cf029b208b9b6a Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 17 Nov 2014 13:32:42 -0800 Subject: [PATCH] Fix detection of fips mode in test_do_encrypt_md5 --- test/units/TestUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py index 3929ed0788..541849fd66 100644 --- a/test/units/TestUtils.py +++ b/test/units/TestUtils.py @@ -464,7 +464,7 @@ class TestUtils(unittest.TestCase): raise AssertionError('Incorrect exception, expected AnsibleError') def test_do_encrypt_md5(self): - if self._is_fips: + if self._is_fips(): raise SkipTest('MD5 unavailable on FIPS systems') hash = ansible.utils.do_encrypt('ansible', 'md5_crypt', salt_size=4) self.assertTrue(passlib.hash.md5_crypt.verify('ansible', hash))