10 lines
345 B
Python
10 lines
345 B
Python
|
|
from django.test import TestCase
|
||
|
|
|
||
|
|
class HomePageTest(TestCase):
|
||
|
|
def test_uses_home_template(self):
|
||
|
|
response = self.client.get('/')
|
||
|
|
self.assertTemplateUsed(response, 'apps/dashboard/home.html')
|
||
|
|
|
||
|
|
def test_renders_homepage_content(self):
|
||
|
|
response = self.client.get('/')
|
||
|
|
self.assertContains(response, 'To-Do')
|