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