diff options
| author | Tim Graham <timograham@gmail.com> | 2014-06-30 14:34:45 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-04 14:15:00 -0400 |
| commit | 7fd55c3481a004afb049e15ae3b8c93ce8bf0603 (patch) | |
| tree | a77d290416d7d4cd1eebd437d6b2a9f7097ad45e /tests/validators | |
| parent | 1966054febbb96b713db27513617eabdbd70957b (diff) | |
Fixed #20631 -- Increased the default EmailField max_length to 254.
Thanks pmartin for the report.
Diffstat (limited to 'tests/validators')
| -rw-r--r-- | tests/validators/tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py index f586270040..b4b6a57207 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -66,6 +66,9 @@ TEST_DATA = ( (validate_email, '"\\\011"@here.com', None), (validate_email, '"\\\012"@here.com', ValidationError), (validate_email, 'trailingdot@shouldfail.com.', ValidationError), + # Max length of domain name in email is 251 (see validator for calculation) + (validate_email, 'a@%s.com' % ('a' * 251), None), + (validate_email, 'a@%s.com' % ('a' * 252), ValidationError), (validate_slug, 'slug-ok', None), (validate_slug, 'longer-slug-still-ok', None), |
