예제 #1
0
 def test_django_validator_invalid(self):
     from django.core.validators import validate_email
     validator = valid.django_validator(valid.string, validate_email)
     self.expect_raises(validator, 'mesomewhere.com',
         errors=['Enter a valid e-mail address.']
     )
예제 #2
0
 def test_django_validator_invalid(self):
     from django.core.validators import validate_email
     validator = valid.django_validator(valid.string, validate_email)
     self.expect_raises(validator, 'mesomewhere.com',
         errors=['Enter a valid e-mail address.']
     )
예제 #3
0
 def test_django_validator(self):
     from django.core.validators import validate_email
     validator = valid.django_validator(valid.string, validate_email)
     self.expect(validator, '*****@*****.**')
예제 #4
0
 def test_django_validator(self):
     from django.core.validators import validate_email
     validator = valid.django_validator(valid.string, validate_email)
     self.expect(validator, '*****@*****.**')