from django import test
from django.core.urlresolvers import reverse
from page.urls import urlpatterns


class PageTest(test.TestCase):

    def test_responses(self):
        for url in urlpatterns:
            response = self.client.get(reverse(url.name))
self.assertEqual(response.status_code, 200)
Django - testing pages for 500 status