ckridgway@16: """ ckridgway@34: Reviews application view tests. ckridgway@16: ckridgway@16: """ ckridgway@34: from django.test import TestCase ckridgway@34: from django.core.urlresolvers import reverse ckridgway@16: ckridgway@16: ckridgway@34: class ViewTest(TestCase): ckridgway@16: ckridgway@34: def test_home(self): ckridgway@16: """ ckridgway@34: Tests the home page to ensure it displays without errors. ckridgway@34: ckridgway@16: """ ckridgway@34: response = self.client.get(reverse('reviews')) ckridgway@34: self.assertEqual(response.status_code, 200) ckridgway@34: self.assertTemplateUsed(response, 'reviews/review_list.html')