Commit ba20a50a authored by Daniel W Bond's avatar Daniel W Bond
Browse files

created first view test case for the housing app

parent 1eb4ba35
# standard library imports
from __future__ import absolute_import, print_function
# core django imports
from django.test import Client
from django.test import TestCase
from django.core.urlresolvers import reverse
class ListBuildingsTest(TestCase):
# tests that the view does not 404
def test_list_buildings_ok(self):
# not passing in anything special because it's not login-protected
client = Client()
response = client.get(reverse('list_buildings'))
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