|
|
@@ -53,7 +53,7 @@ class TestProductDetailView(WebTestCase):
|
|
53
|
53
|
url = reverse('catalogue:detail', kwargs=kwargs)
|
|
54
|
54
|
response = self.app.get(url)
|
|
55
|
55
|
|
|
56
|
|
- self.assertTrue(response.status_code, 200)
|
|
|
56
|
+ self.assertEqual(response.status_code, http_client.OK)
|
|
57
|
57
|
|
|
58
|
58
|
def test_is_public_off(self):
|
|
59
|
59
|
product = create_product(upc="kleine-bats", is_public=False)
|
|
|
@@ -62,7 +62,7 @@ class TestProductDetailView(WebTestCase):
|
|
62
|
62
|
url = reverse('catalogue:detail', kwargs=kwargs)
|
|
63
|
63
|
response = self.app.get(url, expect_errors=True)
|
|
64
|
64
|
|
|
65
|
|
- self.assertTrue(response.status_code, 404)
|
|
|
65
|
+ self.assertEqual(response.status_code, http_client.NOT_FOUND)
|
|
66
|
66
|
|
|
67
|
67
|
|
|
68
|
68
|
class TestProductListView(WebTestCase):
|