def test_should_check_password():
    password = "******"
    password_hash = hashpw(password)
    assert checkpw(password, password_hash) is True
def test_should_check_invalid_password():
    password = "******"
    password_hash = hashpw(password)
    assert_equal(checkpw("not my password", password_hash), False)
def test_should_check_invalid_password():
    password = "******"
    password_hash = hashpw(password)
    assert checkpw("not my password", password_hash) is False
def test_should_check_password():
    password = "******"
    password_hash = hashpw(password)
    assert_equal(checkpw(password, password_hash), True)