Mercurial > public > bravenewsurf
view bns_website/core/tests/view_tests.py @ 9:f2cb9b2ec552
Added generic views for music, videos, and the buy page with placeholder text.
Fix typo in bands.json.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 Oct 2011 22:31:42 -0500 |
parents | 71f2941161e9 |
children | 01740aa4a6b9 |
line wrap: on
line source
""" Core (non-application specific) view tests. """ from django.test import TestCase from django.core.urlresolvers import reverse class ViewTest(TestCase): def test_home(self): """ Tests the home page to ensure it displays without errors. """ response = self.client.get(reverse('home')) self.assertEqual(response.status_code, 200) self.assertTemplateUsed(response, 'home.html')