From 9734335b0b41a2670e548852b5e8cc6a696d4e72 Mon Sep 17 00:00:00 2001 From: "budhraja.ankita" Date: Mon, 22 Apr 2024 02:51:10 -0700 Subject: [PATCH] test4 --- tasks/tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/tests.py b/tasks/tests.py index e49668b..a9b1930 100644 --- a/tasks/tests.py +++ b/tasks/tests.py @@ -27,6 +27,14 @@ def test_view_url_accessible_by_name(self): self.assertEqual(response.status_code, 200) + def test_view_uses_correct_template(self): + response = self.client.get(reverse('task_list')) + self.assertEqual(response.status_code, 200) + self.assertTemplateUsed(response, 'tasks/task_list.html') + + + + # class TaskFormTest(TestCase): # def test_form_validity(self):