diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2012-08-02 13:45:47 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2012-08-02 13:45:47 -0400 |
commit | 0e7e9413ad96c96ca9e3e7c7cdf55d1b47469894 (patch) | |
tree | ec66fd839d838f4e2e1fc748ccd34035e67651bb | |
parent | 92e3505b25ca0c244da7bc3d2c1060afa560c82d (diff) | |
download | passlib-0e7e9413ad96c96ca9e3e7c7cdf55d1b47469894.tar.gz |
typofix in test_handlers, mysql323 fuzz testing now handles whitespace correctly
-rw-r--r-- | passlib/tests/test_handlers.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/passlib/tests/test_handlers.py b/passlib/tests/test_handlers.py index 2d4a49b..4845824 100644 --- a/passlib/tests/test_handlers.py +++ b/passlib/tests/test_handlers.py @@ -1688,6 +1688,10 @@ class mysql323_test(HandlerCase): h2 = self.do_encrypt("my pass") self.assertEqual(h, h2) + def accept_fuzz_pair(self, secret, other): + # override to handle whitespace + return secret.replace(" ","") != other.replace(" ","") + class mysql41_test(HandlerCase): handler = hash.mysql41 known_correct_hashes = [ @@ -2666,7 +2670,7 @@ class sun_md5_crypt_test(HandlerCase): ] - platform_crypt_support = [ + platform_crypt_support = [ ("solaris", True), ("freebsd|openbsd|netbsd|linux|darwin", False), ] |