summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-01-11 20:42:33 +0100
committerClaude Paroz <claude@2xlibre.net>2013-01-11 20:45:46 +0100
commit4e2e8f39d19d79a59c2696b2c40cb619a54fa745 (patch)
tree7ce92eb732d1de1cb7d422344fa1edc0ccbfaa2b /tests
parent1bbd36a36add9b15db43014cf5e7bdb72a86fef1 (diff)
Fixed #4833 -- Validate email addresses with localhost as domain
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/validators/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modeltests/validators/tests.py b/tests/modeltests/validators/tests.py
index 0174a606df..5b562a87e6 100644
--- a/tests/modeltests/validators/tests.py
+++ b/tests/modeltests/validators/tests.py
@@ -29,6 +29,8 @@ TEST_DATA = (
(validate_email, 'example@valid-----hyphens.com', None),
(validate_email, 'example@valid-with-hyphens.com', None),
(validate_email, 'test@domain.with.idn.tld.उदाहरण.परीक्षा', None),
+ (validate_email, 'email@localhost', None),
+ (EmailValidator(whitelist=['localdomain']), 'email@localdomain', None),
(validate_email, None, ValidationError),
(validate_email, '', ValidationError),