コード例 #1
0
def test_should_check_password():
    password = "******"
    password_hash = hashpw(password)
    assert checkpw(password, password_hash) is True
コード例 #2
0
def test_should_check_invalid_password():
    password = "******"
    password_hash = hashpw(password)
    assert_equal(checkpw("not my password", password_hash), False)
コード例 #3
0
def test_should_check_invalid_password():
    password = "******"
    password_hash = hashpw(password)
    assert checkpw("not my password", password_hash) is False
コード例 #4
0
def test_should_check_password():
    password = "******"
    password_hash = hashpw(password)
    assert_equal(checkpw(password, password_hash), True)