diff --git a/tests/auth_tests/test_forms.py b/tests/auth_tests/test_forms.py
index 7085dcfa11..40e3050144 100644
a
|
b
|
class AuthenticationFormTest(TestDataMixin, TestCase):
|
423 | 423 | CustomEmailField.objects.create_user(**data) |
424 | 424 | form = AuthenticationForm(None, data) |
425 | 425 | self.assertEqual(form.fields['username'].max_length, 255) |
| 426 | self.assertEqual(form.fields['username'].widget.attrs.get('maxlength'), 255) |
426 | 427 | self.assertEqual(form.errors, {}) |
427 | 428 | |
428 | 429 | @override_settings(AUTH_USER_MODEL='auth_tests.IntegerUsernameUser') |
… |
… |
class AuthenticationFormTest(TestDataMixin, TestCase):
|
435 | 436 | IntegerUsernameUser.objects.create_user(**data) |
436 | 437 | form = AuthenticationForm(None, data) |
437 | 438 | self.assertEqual(form.fields['username'].max_length, 254) |
| 439 | self.assertEqual(form.fields['username'].widget.attrs.get('maxlength'), 254) |
438 | 440 | self.assertEqual(form.errors, {}) |
439 | 441 | |
440 | 442 | def test_username_field_label(self): |