Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes
test_multiconfig.TestPasswordChecker Class Reference
Collaboration diagram for test_multiconfig.TestPasswordChecker:
Collaboration graph

List of all members.

Public Member Functions

def testBuiltinPasswordChecker

Static Public Attributes

string username = u"SomeUser"
list tests_builtin

Detailed Description

Definition at line 13 of file

Member Function Documentation

Definition at line 29 of file

00030     def testBuiltinPasswordChecker(self):
00031         pw_checker = self.request.cfg.password_checker
00032         if not pw_checker:
00033             py.test.skip("password_checker is disabled in the configuration, not testing it")
00034         else:
00035             for pw, result in self.tests_builtin:
00036                 pw_error = pw_checker(self.request, self.username, pw)
00037                 print "%r: %s" % (pw, pw_error)
00038                 assert result == (pw_error is None)

Here is the call graph for this function:

Member Data Documentation

Initial value:
        (u'', False), # empty
        (u'1966', False), # too short
        (u'asdfghjk', False), # keyboard sequence
        (u'QwertZuiop', False), # german keyboard sequence, with uppercase
        (u'mnbvcx', False), # reverse keyboard sequence
        (u'12345678', False), # keyboard sequence, too easy
        (u'aaaaaaaa', False), # not enough different chars
        (u'BBBaaaddd', False), # not enough different chars
        (username, False), # username == password
        (username[1:-1], False), # password in username
        (u"XXX%sXXX" % username, False), # username in password
        (u'Moin-2007', True), # this should be OK

Definition at line 15 of file

string test_multiconfig.TestPasswordChecker.username = u"SomeUser" [static]

Definition at line 14 of file

The documentation for this class was generated from the following file: