def test_onlyCharsInPasswordAll(): error = False try: passwordValidator.onlyCharsInPassword(testPwd, [(chr(0), chr(128))]) except: error = True assert (error)
def test_onlyCharsInPasswordSymbol(): assert (not passwordValidator.onlyCharsInPassword(testPwd, [('!', '/'), (':', '@'), ('[', '`'), ('{', '~')]))
def test_onlyCharsInPasswordNumber(): assert (not passwordValidator.onlyCharsInPassword(testPwd, [('0', '9')]))
def test_onlyCharsInPasswordUpperAndLower(): assert (not passwordValidator.onlyCharsInPassword(testPwd, [('A', 'Z'), ('a', 'z')]))
def test_onlyCharsInPasswordNone(): assert (not passwordValidator.onlyCharsInPassword(testPwd, []))