mirror of
https://github.com/django/django.git
synced 2025-10-03 07:14:41 +00:00
Fixed test output check when password is blank
This commit is contained in:
parent
703c266682
commit
1aa218b857
1 changed files with 1 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue