diff --git a/categories/tests/test_views.py b/categories/tests/test_views.py index dac65f92..e985bda2 100644 --- a/categories/tests/test_views.py +++ b/categories/tests/test_views.py @@ -25,15 +25,15 @@ def test_category_detail(self): cat2 = Category.objects.get(slug="urban-cowboy") url = cat0.get_absolute_url() response = self.client.get(url) - self.assertEquals(response.status_code, 200) + self.assertEqual(response.status_code, 200) url = cat1.get_absolute_url() response = self.client.get(url) - self.assertEquals(response.status_code, 200) + self.assertEqual(response.status_code, 200) url = cat2.get_absolute_url() response = self.client.get(url) - self.assertEquals(response.status_code, 200) + self.assertEqual(response.status_code, 200) response = self.client.get("%sfoo/" % url) - self.assertEquals(response.status_code, 404) + self.assertEqual(response.status_code, 404) def test_get_category_for_path(self): cat0 = Category.objects.get(slug="country", level=0) @@ -41,11 +41,11 @@ def test_get_category_for_path(self): cat2 = Category.objects.get(slug="urban-cowboy") result = views.get_category_for_path("/country/country-pop/urban-cowboy/") - self.assertEquals(result, cat2) + self.assertEqual(result, cat2) result = views.get_category_for_path("/country/country-pop/") - self.assertEquals(result, cat1) + self.assertEqual(result, cat1) result = views.get_category_for_path("/country/") - self.assertEquals(result, cat0) + self.assertEqual(result, cat0) def test_categorydetailview(self): request = self.factory.get("") @@ -55,7 +55,7 @@ def test_categorydetailview(self): request = self.factory.get("") request.user = AnonymousUser() response = views.CategoryDetailView.as_view()(request, path="/country/country-pop/urban-cowboy/") - self.assertEquals(response.status_code, 200) + self.assertEqual(response.status_code, 200) request = self.factory.get("") request.user = AnonymousUser() @@ -74,7 +74,7 @@ def test_categoryrelateddetailview(self): request = self.factory.get("") request.user = AnonymousUser() response = MyCategoryRelationView.as_view()(request, category_path="/country/country-pop/urban-cowboy/") - self.assertEquals(response.status_code, 200) + self.assertEqual(response.status_code, 200) request = self.factory.get("") request.user = AnonymousUser()