def test_password_validation(): """ Test if password validation works. """ pwd = "password" hashed_pwd = password.encrypt(pwd) assert True == password.validate(pwd, hashed_pwd)
def test_password_hashing(): """ Test if password is being hashed. """ pwd = "password" hashed_pwd = password.encrypt(pwd) assert pwd != hashed_pwd