blob: 4b6c0b37699ae98f141195c7c378158988e8745f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import tables
def test_new_user():
"""
GIVEN a User model
WHEN a new User is created
THEN check that the email, hashed_password, and role fields are defined correctly
"""
user = User('gymdude99', 'bench400soon!', 'gymdude99@gmail.com')
assert user.email == 'gymdude99@gmail.com'
assert user.hashed_password != 'bench400soon!'
assert user.role == 'user'
|