Esempio n. 1
0
 def test_invalid_email(self):
     """validate_email_available disallows unvailable emails"""
     with self.assertRaises(ValidationError):
         validate_email_available(self.test_user.email)
 def test_invalid_email(self):
     """validate_email_available disallows unvailable emails"""
     with self.assertRaises(ValidationError):
         validate_email_available(self.test_user.email)
Esempio n. 3
0
 def test_valid_email(self):
     """validate_email_available allows available emails"""
     validate_email_available('*****@*****.**')
     validate_email_available(self.test_user.email, exclude=self.test_user)
 def test_valid_email(self):
     """validate_email_available allows available emails"""
     validate_email_available('*****@*****.**')
     validate_email_available(self.test_user.email, exclude=self.test_user)