9 lines
320 B
Python
9 lines
320 B
Python
from django.test import TestCase
|
|
|
|
class HomePageTest(TestCase):
|
|
def test_home_page_returns_correct_html(self):
|
|
response = self.client.get('/')
|
|
self.assertContains(response, '<title>To-Do Lists</title>')
|
|
self.assertContains(response, '<html>')
|
|
self.assertContains(response, '</html>')
|