1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Replaced deprecated TestCase methods. Refs #17049.

This commit is contained in:
Claude Paroz
2012-05-03 16:39:16 +02:00
parent e84f79f051
commit b52672d778
19 changed files with 80 additions and 80 deletions

View File

@@ -3144,7 +3144,7 @@ class ReadonlyTest(TestCase):
def test_user_password_change_limited_queryset(self):
su = User.objects.filter(is_superuser=True)[0]
response = self.client.get('/test_admin/admin2/auth/user/%s/password/' % su.pk)
self.assertEquals(response.status_code, 404)
self.assertEqual(response.status_code, 404)
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))