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