test_url.py 283 Bytes Edit 1 2 3 4 5 6 7 8 9 10 11 12 from django.test import SimpleTestCase from django.test import Client class TestUrls(SimpleTestCase): def testProductsUrlIsResolved(self): c = Client() response = c.get('/products/') assert response.status_code == 200, "Products url is not resolved"