Files
python-tdd/apps/lists/tests.py

9 lines
320 B
Python
Raw Normal View History

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>')