Mercurial > public > bravenewsurf
comparison bns_website/reviews/tests.py @ 35:5992b6b1bcd2
Fix out of date comments and test names in bands and reviews.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Nov 2011 13:55:16 -0600 |
parents | 37d9b6b1a097 |
children |
comparison
equal
deleted
inserted
replaced
34:37d9b6b1a097 | 35:5992b6b1bcd2 |
---|---|
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_reviews_list(self): |
12 """ | 12 """ |
13 Tests the home page to ensure it displays without errors. | 13 Tests the reviews page to ensure it displays without errors. |
14 | 14 |
15 """ | 15 """ |
16 response = self.client.get(reverse('reviews')) | 16 response = self.client.get(reverse('reviews')) |
17 self.assertEqual(response.status_code, 200) | 17 self.assertEqual(response.status_code, 200) |
18 self.assertTemplateUsed(response, 'reviews/review_list.html') | 18 self.assertTemplateUsed(response, 'reviews/review_list.html') |