aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-08-13 23:36:14 +0200
committerGravatar Johannes Christ <[email protected]>2018-08-13 23:36:14 +0200
commitda1820ae69188c3e390ea511da522b0534819793 (patch)
tree53c91b0cb905c0bf56068432e9b5fc79e734338c /home
parentAdd subdomains to `ALLOWED_HOSTS`. (diff)
Add a simple test case for `home:index`.
Diffstat (limited to 'home')
-rw-r--r--home/tests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/home/tests.py b/home/tests.py
index 7ce503c2..a4bb7db6 100644
--- a/home/tests.py
+++ b/home/tests.py
@@ -1,3 +1,9 @@
+from django.shortcuts import reverse
from django.test import TestCase
-# Create your tests here.
+
+class TestIndexReturns200(TestCase):
+ def test_index_returns_200(self):
+ url = reverse('home:index')
+ resp = self.client.get(url)
+ self.assertEqual(resp.status_code, 200)