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

@ -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"