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 - тестирование страниц на статус 500