diff --git a/homeapp/__pycache__/tests.cpython-39.pyc b/homeapp/__pycache__/tests.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..831880c5a18438174b01a96185a1b0e7fdbcfdfe Binary files /dev/null and b/homeapp/__pycache__/tests.cpython-39.pyc differ diff --git a/homeapp/tests.py b/homeapp/tests.py index 7ce503c2dd97ba78597f6ff6e4393132753573f6..f926e6cd336e2fd1083222541842768a094e5f05 100644 --- a/homeapp/tests.py +++ b/homeapp/tests.py @@ -1,3 +1,14 @@ from django.test import TestCase -# Create your tests here. +class HomePageTests(TestCase): + """Test the carvehicle application homepage""" + + def setUp(self): + return + + def test_homepage(self): + response = self.client.get('/home/') + self.assertEqual(response.status_code, 200) + + self.assertContains(response, 'This is My Home Page') + self.assertContains(response, 'This is my footer') \ No newline at end of file