from django.test import TestCase
from django.core.urlresolvers import reverse
class IndexTestCase(TestCase):
def test_accessable(self):
response = self.client.get(reverse('pages:index'))
self.assertEqual(response.status_code, 200)
class AboutWebsiteTestCase(TestCase):
response = self.client.get(reverse('pages:about-website'))
class AboutIndexTestCase(TestCase):
response = self.client.get(reverse('pages:about'))
class Custom404TestCase(TestCase):
response = self.client.get(reverse('404'))
self.assertEqual(response.status_code, 404)
class NoJavascriptTestCase(TestCase):
response = self.client.get(reverse('no-js'))
class AllProjectsTestCase(TestCase):
response = self.client.get(reverse('pages:all-projects'))