def test_banned_name(self): """banned email fails validation""" with self.assertRaises(ValidationError): validate_email_banned('*****@*****.**')
def test_unbanned_name(self): """unbanned email passes validation""" validate_email_banned('*****@*****.**')