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