summaryrefslogtreecommitdiff
path: root/tests/modeltests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-01-26 12:19:31 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-01-26 12:20:57 +0100
commit424eb67867162032d92e0bfe3403f051765de805 (patch)
tree17ecdc91889387051a4c840389f07ad9a9dbe3cc /tests/modeltests
parent58062a6302a2bf1013d100deb053ccae2298bb84 (diff)
downloaddjango-424eb67867162032d92e0bfe3403f051765de805.tar.gz
Fixed validation of email addresses when the local part contains an @.
See also BaseUserManager.normalize_email -- it uses rsplit. Refs #4833.
Diffstat (limited to 'tests/modeltests')
-rw-r--r--tests/modeltests/validators/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/modeltests/validators/tests.py b/tests/modeltests/validators/tests.py
index 5b562a87e6..6b46c53cc3 100644
--- a/tests/modeltests/validators/tests.py
+++ b/tests/modeltests/validators/tests.py
@@ -31,6 +31,7 @@ TEST_DATA = (
(validate_email, 'test@domain.with.idn.tld.उदाहरण.परीक्षा', None),
(validate_email, 'email@localhost', None),
(EmailValidator(whitelist=['localdomain']), 'email@localdomain', None),
+ (validate_email, '"test@test"@example.com', None),
(validate_email, None, ValidationError),
(validate_email, '', ValidationError),