def test_unique_user_new(self): user = User(email=USERS[0]['email']) with pytest.raises(exceptions.ValidationError): yield user.check_unique()
def test_unique_user_new_email(self): user = User(email='test@test') yield user.check_unique()
def test_unique(self): user = User(**USERS[0]) yield user.check_unique()