mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Added tests for validataing email length of 254 characters
This commit is contained in:
parent
b79b55395e
commit
4063e03670
@ -324,7 +324,7 @@ TEST_DATA = [
|
||||
(validate_email, "a@%s.us" % ("a" * 63), None),
|
||||
(validate_email, "a@%s.us" % ("a" * 64), ValidationError),
|
||||
# validation error if max length of email exceeds 254 chracters.
|
||||
(validate_email, "%s@example.com" % ("a" * 50), None),
|
||||
(validate_email, "%s@example.com" % ("a" * 50), None),
|
||||
(validate_email, "%s@example.com" % ("a" * 250), ValidationError),
|
||||
# Trailing newlines in username or domain not allowed
|
||||
(validate_email, "a@b.com\n", ValidationError),
|
||||
|
Loading…
x
Reference in New Issue
Block a user