mirror of
https://github.com/django/django.git
synced 2025-06-13 07:29:13 +00:00
Fixed test with correct length of the long_email (fixed whitespace)
This commit is contained in:
parent
6dc451195e
commit
b4f16ffc5f
@ -64,7 +64,7 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
|
|||||||
"'Ensure this value has at most 15 characters (it has 20).'",
|
"'Ensure this value has at most 15 characters (it has 20).'",
|
||||||
):
|
):
|
||||||
f.clean("alf123456788@foo.com")
|
f.clean("alf123456788@foo.com")
|
||||||
long_email = 'a' * 245 + '@example.com'
|
long_email = 'a' * 245 + '@example.com'
|
||||||
with self.assertRaisesMessage(
|
with self.assertRaisesMessage(
|
||||||
ValidationError,
|
ValidationError,
|
||||||
"'Ensure this value has at most 15 characters (it has 257).'"
|
"'Ensure this value has at most 15 characters (it has 257).'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user