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