Ejemplo n.º 1
0
 def test_set_password(self):
     user = User("username", "passrd")
     user.set_password("password")
     assert user.check_password("password")
Ejemplo n.º 2
0
 def test_wrong_password(self):
     user = User("username", "password")
     assert not user.check_password("passord")