Example #1
0
def test_charInPasswordSymbol():
    assert (passwordValidator.charInPassword(testPwd, [('!', '/'), (':', '@'),
                                                       ('[', '`'),
                                                       ('{', '~')]))
Example #2
0
def test_charInPasswordNumber():
    assert (passwordValidator.charInPassword(testPwd, [('0', '9')]))
Example #3
0
def test_charInPasswordUpperAndLower():
    assert (passwordValidator.charInPassword(testPwd, [('A', 'Z'),
                                                       ('a', 'z')]))
Example #4
0
def test_charInPasswordLower():
    assert (passwordValidator.charInPassword(testPwd, [('a', 'z')]))
Example #5
0
def test_charInPasswordNone():
    assert (not passwordValidator.charInPassword(testPwd, []))
Example #6
0
def test_charInPasswordAll():
    assert (passwordValidator.charInPassword(testPwd, [(chr(0), chr(128))]))