diff --git a/website/home/tests.py b/website/home/tests.py new file mode 100644 index 0000000..b53ddaf --- /dev/null +++ b/website/home/tests.py @@ -0,0 +1,11 @@ +from django.test import TestCase +from .models import HomePage + +class HomePageTestCase(TestCase): + @classmethod + def setUpTestData(cls): + cls.page = HomePage.objects.get() + + def test_accessible(self): + response = self.client.get(self.page.url) + self.assertEqual(response.status_code, 200)