aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/home/tests
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/home/tests')
-rw-r--r--pydis_site/apps/home/tests/test_app_basics.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/pydis_site/apps/home/tests/test_app_basics.py b/pydis_site/apps/home/tests/test_app_basics.py
new file mode 100644
index 00000000..733ddaa3
--- /dev/null
+++ b/pydis_site/apps/home/tests/test_app_basics.py
@@ -0,0 +1,16 @@
+from django.test import TestCase
+from django_hosts.resolvers import reverse
+
+from pydis_site.apps.home.templatetags import extra_filters
+
+
+class TestIndexReturns200(TestCase):
+ def test_index_returns_200(self):
+ url = reverse('home.index')
+ resp = self.client.get(url)
+ self.assertEqual(resp.status_code, 200)
+
+
+class TestExtraFilterTemplateTags(TestCase):
+ def test_starts_with(self):
+ self.assertTrue(extra_filters.starts_with('foo', 'f'))