forked from KSET/kset-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubpages_test.py
32 lines (22 loc) · 968 Bytes
/
subpages_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from django.test import TestCase
from .base import BaseTestClient
from subpages.views import DIVISIONS, PROJECTS
__all__ = ['SubpageViewTest']
class SubpageViewTest(TestCase):
def setUp(self):
super(SubpageViewTest, self).setUp()
self.client = BaseTestClient()
def test_subpage_division(self):
for d in DIVISIONS:
response = self.client.get('subpage_division', division=d['id'])
self.assertEquals(200, response.status_code)
def test_subpage_projects(self):
for p in PROJECTS:
response = self.client.get('subpage_project', project=p['id'])
self.assertEquals(200, response.status_code)
def test_subpage_alumni(self):
response = self.client.get('subpage_alumni')
self.assertEquals(200, response.status_code)
def test_multimedia(self):
response = self.client.get('subpage_multimedia')
self.assertEquals(200, response.status_code)