Exemple #1
0
 def test_unique_user_new(self):
     user = User(email=USERS[0]['email'])
     with pytest.raises(exceptions.ValidationError):
         yield user.check_unique()
Exemple #2
0
 def test_unique_user_new_email(self):
     user = User(email='test@test')
     yield user.check_unique()
Exemple #3
0
 def test_unique(self):
     user = User(**USERS[0])
     yield user.check_unique()
Exemple #4
0
 def test_unique_user_new(self):
     user = User(email=USERS[0]['email'])
     with pytest.raises(exceptions.ValidationError):
         yield user.check_unique()
Exemple #5
0
 def test_unique_user_new_email(self):
     user = User(email='test@test')
     yield user.check_unique()
Exemple #6
0
 def test_unique(self):
     user = User(**USERS[0])
     yield user.check_unique()