comparison bns_website/bands/tests/view_tests.py @ 39:b9d6f6d930a9

Merged Chris and Brian's changes with mine.
author Bob Mourlam <bob.mourlam@gmail.com>
date Sun, 06 Nov 2011 20:28:25 -0600 (2011-11-07)
parents 5992b6b1bcd2
children
comparison
equal deleted inserted replaced
38:6b4e02b8be6b 39:b9d6f6d930a9
6 from django.core.urlresolvers import reverse 6 from django.core.urlresolvers import reverse
7 7
8 8
9 class ViewTest(TestCase): 9 class ViewTest(TestCase):
10 10
11 def test_home(self): 11 def test_bands(self):
12 """ 12 """
13 Tests the home page to ensure it displays without errors. 13 Tests the bands page to ensure it displays without errors.
14 14
15 """ 15 """
16 response = self.client.get(reverse('bands')) 16 response = self.client.get(reverse('bands'))
17 self.assertEqual(response.status_code, 200) 17 self.assertEqual(response.status_code, 200)
18 self.assertTemplateUsed(response, 'bands/band_list.html') 18 self.assertTemplateUsed(response, 'bands/band_list.html')