bgneal@6: """ bgneal@6: Bands application view tests. bgneal@6: bgneal@6: """ bgneal@6: from django.test import TestCase bgneal@6: from django.core.urlresolvers import reverse bgneal@6: bgneal@6: bgneal@6: class ViewTest(TestCase): bgneal@6: bgneal@35: def test_bands(self): bgneal@6: """ bgneal@35: Tests the bands page to ensure it displays without errors. bgneal@6: bgneal@6: """ bgneal@6: response = self.client.get(reverse('bands')) bgneal@6: self.assertEqual(response.status_code, 200) bgneal@6: self.assertTemplateUsed(response, 'bands/band_list.html')