aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/timeline/tests/test_views.py
blob: a3e2e80500e9cceaa7b682311bc653b1baf4e5b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
from django.test import TestCase
from django.urls import reverse


class TestIndexReturns200(TestCase):
    def test_index_returns_200(self):
        """Check that the index page returns a HTTP 200 response."""
        url = reverse('timeline:index')
        resp = self.client.get(url)
        self.assertEqual(resp.status_code, 200)