aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/apps/home/tests.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-05 12:11:31 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-05 12:11:31 +0100
commitebda74029355ce3236ca9266acde40fd40329df7 (patch)
treeaba491f902c874328c88b8e7ccb9772b5414c17f /pysite/apps/home/tests.py
parentSet `harakiri = 30`. (diff)
[#176] Redo project layout
Diffstat (limited to 'pysite/apps/home/tests.py')
-rw-r--r--pysite/apps/home/tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pysite/apps/home/tests.py b/pysite/apps/home/tests.py
new file mode 100644
index 00000000..54fac6e8
--- /dev/null
+++ b/pysite/apps/home/tests.py
@@ -0,0 +1,9 @@
+from django.test import TestCase
+from django_hosts.resolvers import reverse
+
+
+class TestIndexReturns200(TestCase):
+ def test_index_returns_200(self):
+ url = reverse('index')
+ resp = self.client.get(url)
+ self.assertEqual(resp.status_code, 200)