用户登录
This commit is contained in:
8
tests/test_pkg_password.py
Normal file
8
tests/test_pkg_password.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import pytest
|
||||
from pkg.password.pwd import Password
|
||||
|
||||
def test_password():
|
||||
for i in range(10):
|
||||
password = Password.generate()
|
||||
hashed_password = Password.hash(password)
|
||||
assert Password.verify(hashed_password, password)
|
||||
Reference in New Issue
Block a user