diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-09-12 11:56:58 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-09-12 11:58:02 +0200 |
| commit | 1aa218b857ccd5e7db3718e2c0b4d4739dcb075c (patch) | |
| tree | ba3024a1723aeed96b2250aca925045b0d8c31f9 | |
| parent | 703c266682be39f7153498ad0d8031231f12ee79 (diff) | |
Fixed test output check when password is blank
| -rw-r--r-- | django/contrib/auth/tests/forms.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/auth/tests/forms.py b/django/contrib/auth/tests/forms.py index 8fee3501c5..74aa47e199 100644 --- a/django/contrib/auth/tests/forms.py +++ b/django/contrib/auth/tests/forms.py @@ -246,8 +246,7 @@ class UserChangeFormTest(TestCase): 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') |
