Permalink
Browse files

Fixed test output check when password is blank

  • Loading branch information...
1 parent 703c266 commit 1aa218b857ccd5e7db3718e2c0b4d4739dcb075c @claudep claudep committed Sep 12, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 django/contrib/auth/tests/forms.py
@@ -246,8 +246,7 @@ def test_unsuable_password(self):
def test_bug_17944_empty_password(self):
user = User.objects.get(username='empty_password')
form = UserChangeForm(instance=user)
- self.assertIn(_("Invalid password format or unknown hashing algorithm."),
- form.as_table())
+ self.assertIn(_("No password set."), form.as_table())
def test_bug_17944_unmanageable_password(self):
user = User.objects.get(username='unmanageable_password')

0 comments on commit 1aa218b

Please sign in to comment.