def test_user_update_status(self):
     user_id = UserId(id=str(uuid.uuid4()))
     new_user = User(username='******', email='email', password='******', id=user_id)
     new_user.update_status(UserStatus.BLOCKED)
     assert new_user.is_blocked()
 def test_user_defaults(self):
     user_id = UserId(id=str(uuid.uuid4()))
     user_id2 = UserId(id=str(uuid.uuid4()))
     new_user = User(username='******', email='email', password='******', id=user_id)
     assert new_user.id != user_id2
     assert not new_user.is_blocked()