changeset 3323:fb625b97ca02

remove crack password checker test now that password checker was removed...
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 19 Mar 2008 03:50:30 +0100
parents dd519c814149
children 412aa58400f2
files MoinMoin/config/_tests/test_multiconfig.py
diffstat 1 files changed, 0 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/_tests/test_multiconfig.py	Wed Mar 19 03:49:51 2008 +0100
+++ b/MoinMoin/config/_tests/test_multiconfig.py	Wed Mar 19 03:50:30 2008 +0100
@@ -40,24 +40,5 @@
                 print "%r: %s" % (pw, pw_error)
                 assert result == (pw_error is None)
 
-    def testCrackPasswordChecker(self):
-        pw_checker = self.request.cfg.password_checker
-        if not pw_checker:
-            py.test.skip("password_checker is disabled in the configuration, not testing it")
-        else:
-            try:
-                import crack # do we have python-crack?
-            except:
-                py.test.skip("python-crack is not installed")
-            try:
-                crack.FascistCheck("a12fv./ZX47") # this should not raise an exception
-            except:
-                py.test.skip("python-crack is not working correctly (did you forget to build the dicts?)")
-            else:
-                for pw, result in self.tests_crack:
-                    pw_error = pw_checker(self.username, pw)
-                    print "%r: %s" % (pw, pw_error)
-                    assert result == (pw_error is None)
-
 coverage_modules = ['MoinMoin.config.multiconfig']