diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2014-10-05 13:17:26 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2014-10-05 13:17:26 +0200 |
commit | 9026f8651cef4b21a73165ab1b21a951e2d63aca (patch) | |
tree | 57929b546d66b299dba02592d669c50635aa1a17 /public/tests.py | |
parent | dceadbebbe0b196278573ed294be8c631d45ecef (diff) |
Fix public tests and download URL.
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') |