mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Implemented tests and formatted code
This commit is contained in:
parent
b4f16ffc5f
commit
bf257fc314
@ -64,10 +64,10 @@ 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).'",
|
||||||
):
|
):
|
||||||
f.clean(long_email)
|
f.clean(long_email)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user