<filename>core/tests.py<gh_stars>0
from django.test import TestCase


class ViewsTestCase(TestCase):
    def test_home_page_loads(self):
        response = self.client.get('/')
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, 'Django python demo')
<filename>core/tests.py<gh_stars>0
from django.test import TestCase


class ViewsTestCase(TestCase):
    def test_home_page_loads(self):
        response = self.client.get('/')
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, 'Django python demo')