mirror of
https://github.com/django/django.git
synced 2025-06-11 22:49:13 +00:00
Fixed line length too long in test_emailfied
This commit is contained in:
parent
8b6ea840bc
commit
20e073b053
@ -66,7 +66,8 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
|
|||||||
f.clean("alf123456788@foo.com")
|
f.clean("alf123456788@foo.com")
|
||||||
email = 'a' * 245 + '@example.com' # This email has 255 characters
|
email = 'a' * 245 + '@example.com' # This email has 255 characters
|
||||||
with self.assertRaisesMessage(
|
with self.assertRaisesMessage(
|
||||||
ValidationError, "'Ensure this value has at most 254 characters (it has 255).'"
|
ValidationError,
|
||||||
|
"'Ensure this value has at most 254 characters (it has 255).'"
|
||||||
):
|
):
|
||||||
f.clean(email)
|
f.clean(email)
|
||||||
def test_emailfield_strip_on_none_value(self):
|
def test_emailfield_strip_on_none_value(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user