mirror of
https://github.com/django/django.git
synced 2025-04-05 05:56:42 +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).'",
|
||||
):
|
||||
f.clean("alf123456788@foo.com")
|
||||
long_email = 'a' * 245 + '@example.com'
|
||||
long_email = "a" * 245 + "@example.com"
|
||||
with self.assertRaisesMessage(
|
||||
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user