From 0e7e9413ad96c96ca9e3e7c7cdf55d1b47469894 Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Thu, 2 Aug 2012 13:45:47 -0400 Subject: typofix in test_handlers, mysql323 fuzz testing now handles whitespace correctly --- passlib/tests/test_handlers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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), ] -- cgit v1.2.1