mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
@@ -53,7 +53,7 @@ class AuthViewsTestCase(TestCase):
|
|||||||
def assertFormError(self, response, error):
|
def assertFormError(self, response, error):
|
||||||
"""Assert that error is found in response.context['form'] errors"""
|
"""Assert that error is found in response.context['form'] errors"""
|
||||||
form_errors = list(itertools.chain(*response.context['form'].errors.values()))
|
form_errors = list(itertools.chain(*response.context['form'].errors.values()))
|
||||||
self.assertIn(force_text(text), form_errors)
|
self.assertIn(force_text(error), form_errors)
|
||||||
|
|
||||||
|
|
||||||
@skipIfCustomUser
|
@skipIfCustomUser
|
||||||
|
|||||||
Reference in New Issue
Block a user