Beispiel #1
0
 def test_jsonify(self):
     user = User("ayrx", "*****@*****.**", "Terry", "password")
     assert user.jsonify() == {
         "username": "******",
         "name": "Terry",
         "email": "*****@*****.**"
     }
Beispiel #2
0
 def test_jsonify(self):
     user = User("ayrx", "*****@*****.**", "Terry", "password")
     assert user.jsonify() == {
         "username": "******",
         "name": "Terry",
         "email": "*****@*****.**"
     }
Beispiel #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
Beispiel #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