From f24ff7cb39213aa404ad0f5d59cf976b4973e3f7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 31 Jan 2016 19:08:46 +0000 Subject: [PATCH] Tests --- project/pages/tests.py | 6 ++++++ project/urls.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/project/pages/tests.py b/project/pages/tests.py index ecf1f0d..e3c7f91 100644 --- a/project/pages/tests.py +++ b/project/pages/tests.py @@ -69,3 +69,9 @@ class RoboticsTestCase(TestCase): def test_2015_code_accessable(self): response = self.client.get(reverse('robotics:2015-code')) self.assertEqual(response.status_code, 200) + + +class CollegeTestCase(TestCase): + def test_attack_on_blocks_accessable(self): + response = self.client.get(reverse('college:attack-on-blocks')) + self.assertEqual(response.status_code, 200) diff --git a/project/urls.py b/project/urls.py index ed5390f..9725703 100644 --- a/project/urls.py +++ b/project/urls.py @@ -8,7 +8,7 @@ urlpatterns = [ url(r'^404/', Custom404View.as_view(), name="404"), url(r'^no-js/', NoJavascriptView.as_view(), name="no-js"), url(r'^about/', include('project.pages.urls.about', namespace='about')), - url(r'^college/', include('project.pages.urls.college', namespace='colldge')), + url(r'^college/', include('project.pages.urls.college', namespace='college')), url(r'^core/', include('project.pages.urls.core', namespace='core')), url(r'^projects/', include('project.pages.urls.projects', namespace='projects')), url(r'^robotics/', include('project.pages.urls.robotics', namespace='robotics')),