summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-12-01 23:02:25 -0200
committerIsmael Carnales <icarnales@gmail.com>2009-12-01 23:26:04 -0200
commite0506afaf1b876d672e5cb40ad13702f0c6f0e01 (patch)
treecc2432e7403e2c898a0527196c254b557b762a68
parent1390a8b40ed3443368ac490561e30346b605f1b1 (diff)
Add basic tests to public app
The addition of a models.py file in public app is needed for django to recognize it as an application for testing. Signed-off-by: Ismael Carnales <icarnales@gmail.com>
-rw-r--r--public/models.py1
-rw-r--r--public/tests.py48
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)