Commit 39a0f5f2 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

full test coverage... on checking if all of the views 200, so an extremely low bar

parent 3e55ef48
# standard library imports
from __future__ import absolute_import, print_function
# core django imports
from django.test import SimpleTestCase, Client
from django.core.urlresolvers import reverse
# imports from your apps
from housing.test_views import RoomlistViewTest
class StaticLoadTest(SimpleTestCase):
def setUp(self):
self.client = Client()
def test_homepage_load(self):
response = self.client.get(reverse('homepage'))
self.assertEqual(response.status_code, 200)
def test_about_load(self):
response = self.client.get(reverse('about'))
self.assertEqual(response.status_code, 200)
def test_privacy_load(self):
response = self.client.get(reverse('privacy'))
self.assertEqual(response.status_code, 200)
class LandingTest(RoomlistViewTest):
def test_landing_ok(self):
client = self.client_login()
response = client.get(reverse('homepage'))
self.assertEqual(response.status_code, 200)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment