diff --git a/apps/dashboard/tests.py b/apps/dashboard/tests.py index 7bba493..9b5bbb0 100644 --- a/apps/dashboard/tests.py +++ b/apps/dashboard/tests.py @@ -44,7 +44,11 @@ class ItemModelTest(TestCase): self.assertEqual(first_saved_item.text, "The first (ever) list item") self.assertEqual(second_saved_item.text, "A sequel somehow better than the first") -class ListViewTest(TestCase): +class DashViewTest(TestCase): + def test_uses_list_template(self): + response = self.client.get('/apps/dashboard/the-only-list-in-the-world/') + self.assertTemplateUsed(response, 'apps/dashboard/list.html') + def test_renders_input_form(self): response = self.client.get('/apps/dashboard/the-only-list-in-the-world/') self.assertContains(response, '
+| {{ forloop.counter }}. {{ item.text }} |