def test_invalid(): hashed = crypt('password') assert not verify('password2', hashed)
def test_valid(): hashed = crypt('password') assert verify('password', hashed)