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