示例#1
0
def test_password_validation():
    """ Test if password validation works. """

    pwd = "password"
    hashed_pwd = password.encrypt(pwd)

    assert True == password.validate(pwd, hashed_pwd)
示例#2
0
def test_password_validation():
    """ Test if password validation works. """

    pwd = "password"
    hashed_pwd = password.encrypt(pwd)

    assert True == password.validate(pwd, hashed_pwd)
示例#3
0
def test_password_hashing():
    """ Test if password is being hashed. """

    pwd = "password"
    hashed_pwd = password.encrypt(pwd)

    assert pwd != hashed_pwd
示例#4
0
def test_password_hashing():
    """ Test if password is being hashed. """

    pwd = "password"
    hashed_pwd = password.encrypt(pwd)

    assert pwd != hashed_pwd