diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/models.py | 1 | ||||
-rw-r--r-- | public/tests.py | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/public/models.py b/public/models.py new file mode 100644 index 00000000..3668574e --- /dev/null +++ b/public/models.py @@ -0,0 +1 @@ +# Needed for django to recognize this as an app for testing diff --git a/public/tests.py b/public/tests.py new file mode 100644 index 00000000..3f0c5308 --- /dev/null +++ b/public/tests.py @@ -0,0 +1,48 @@ +from django.test import TestCase + + +class PublicTest(TestCase): + + def test_index(self): + response = self.client.get('/') + self.assertEqual(response.status_code, 200) + + def test_about(self): + response = self.client.get('/about/') + self.assertEqual(response.status_code, 200) + + def test_art(self): + response = self.client.get('/art/') + self.assertEqual(response.status_code, 200) + + def test_svn(self): + response = self.client.get('/svn/') + self.assertEqual(response.status_code, 200) + + def test_developers(self): + response = self.client.get('/developers/') + self.assertEqual(response.status_code, 200) + + def test_fellows(self): + response = self.client.get('/fellows/') + self.assertEqual(response.status_code, 200) + + def test_donate(self): + response = self.client.get('/donate/') + self.assertEqual(response.status_code, 200) + + def test_download(self): + response = self.client.get('/download/') + self.assertEqual(response.status_code, 200) + + def test_irc(self): + response = self.client.get('/irc/') + self.assertEqual(response.status_code, 200) + + def test_moreforums(self): + response = self.client.get('/moreforums/') + self.assertEqual(response.status_code, 200) + + def test_projects(self): + response = self.client.get('/projects/') + self.assertEqual(response.status_code, 200) |