test_url.py 265 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 testSalesUrlIsResolved(self):

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

11
	    assert response.status_code == 200, "Sales url is not resolved"
Alexis Aoun committed
12