mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Replaced deprecated TestCase methods. Refs #17049.
This commit is contained in:
parent
e84f79f051
commit
b52672d778
19 changed files with 80 additions and 80 deletions
|
|
@ -378,7 +378,7 @@ class ClientTest(TestCase):
|
|||
|
||||
# Get the page without logging in. Should result in 403.
|
||||
response = self.client.get('/test_client/permission_protected_view_exception/')
|
||||
self.assertEquals(response.status_code, 403)
|
||||
self.assertEqual(response.status_code, 403)
|
||||
|
||||
# Log in
|
||||
login = self.client.login(username='testclient', password='password')
|
||||
|
|
@ -386,7 +386,7 @@ class ClientTest(TestCase):
|
|||
|
||||
# Log in with wrong permissions. Should result in 403.
|
||||
response = self.client.get('/test_client/permission_protected_view_exception/')
|
||||
self.assertEquals(response.status_code, 403)
|
||||
self.assertEqual(response.status_code, 403)
|
||||
|
||||
def test_view_with_method_permissions(self):
|
||||
"Request a page that is protected with a @permission_required method"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue