2025-12-30 15:49:50 -05:00
|
|
|
from django.test import TestCase
|
|
|
|
|
|
2025-12-30 16:15:55 -05:00
|
|
|
class HomePageTest(TestCase):
|
|
|
|
|
def test_home_page_returns_correct_html(self):
|
2025-12-30 17:22:22 -05:00
|
|
|
response = self.client.get('/')
|
|
|
|
|
self.assertContains(response, '<title>To-Do Lists</title>')
|
|
|
|
|
self.assertContains(response, '<html>')
|
|
|
|
|
self.assertContains(response, '</html>')
|