Fixed a misnamed variable introduced in commit 142ec8b283

Refs #8404.
This commit is contained in:
Claude Paroz 2013-02-14 08:33:10 +01:00
parent 142ec8b283
commit f1029b308f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class AuthViewsTestCase(TestCase):
def assertFormError(self, response, error):
"""Assert that error is found in response.context['form'] errors"""
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