Permalink
Browse files

Fixed a misnamed variable introduced in commit 142ec8b

Refs #8404.
  • Loading branch information...
1 parent 142ec8b commit f1029b308f3ea967a5d93aea2b730671898a56f5 @claudep claudep committed Feb 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/auth/tests/views.py
@@ -53,7 +53,7 @@ def login(self, password='password'):
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

0 comments on commit f1029b3

Please sign in to comment.