Ejemplo n.º 1
0
 def test_jsonify(self):
     user = User("ayrx", "*****@*****.**", "Terry", "password")
     assert user.jsonify() == {
         "username": "******",
         "name": "Terry",
         "email": "*****@*****.**"
     }
Ejemplo n.º 2
0
 def test_jsonify(self):
     user = User("ayrx", "*****@*****.**", "Terry", "password")
     assert user.jsonify() == {
         "username": "******",
         "name": "Terry",
         "email": "*****@*****.**"
     }
Ejemplo n.º 3
0
 def test_verify_password(self):
     user = User("ayrx", "*****@*****.**", "Terry", "password")
     assert user.verify_password("password") is True
     assert user.verify_password("wrong_password") is False
Ejemplo n.º 4
0
 def test_verify_password(self):
     user = User("ayrx", "*****@*****.**", "Terry", "password")
     assert user.verify_password("password") is True
     assert user.verify_password("wrong_password") is False