test_url.py 283 Bytes
Newer Older
1
from django.test import SimpleTestCase
2
from django.test import Client
3 4 5

class TestUrls(SimpleTestCase):

6 7 8 9 10
    def testProductsUrlIsResolved(self):

        c = Client()
        response = c.get('/products/')

11
        assert response.status_code == 200, "Products url is not resolved"
12