diff options
Diffstat (limited to 'public/tests.py')
-rw-r--r-- | public/tests.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/public/tests.py b/public/tests.py index 565d57ec..49bbd2bb 100644 --- a/public/tests.py +++ b/public/tests.py @@ -17,10 +17,16 @@ class PublicTest(TestCase): def test_svn(self): response = self.client.get('/svn/') - self.assertEqual(response.status_code, 200) + # Parabola has no SVN. + self.assertEqual(response.status_code, 404) def test_developers(self): response = self.client.get('/developers/') + self.assertEqual(response.status_code, 301) + self.assertTrue(response['Location'].endswith('/hackers/')) + + def test_hackers(self): + response = self.client.get('/hackers/') self.assertEqual(response.status_code, 200) def test_fellows(self): @@ -33,5 +39,6 @@ class PublicTest(TestCase): def test_download(self): response = self.client.get('/download/') - self.assertEqual(response.status_code, 200) - + self.assertEqual(response.status_code, 302) + self.assertEqual(response['Location'], + 'https://wiki.parabola.nu/Get_Parabola') |