evorepo/public/tests.py
Dan McGee 6897f44fa7 Shore up some failing tests
We really need to add a bunch of new ones for views that have been added
and/or changed, such as all the people stuff, but fix the response code
here to reflect the new and current reality.

Signed-off-by: Dan McGee <dan@archlinux.org>
2015-04-15 17:12:32 -05:00

38 lines
1.1 KiB
Python

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_old(self):
response = self.client.get('/developers/')
self.assertEqual(response.status_code, 301)
def test_fellows_old(self):
response = self.client.get('/fellows/')
self.assertEqual(response.status_code, 301)
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)