Commit f1051a73 authored by adam.fisher1's avatar adam.fisher1

Update tests.py

parent ab37d5ba
Pipeline #710 canceled with stages
from django.test import TestCase
from django.urls import reverse
# Create your tests here.
class HomePageViewTest(TestCase):
def test_home_page_view(self):
# Use reverse to generate the URL for the home view
response = self.client.get(reverse('home'))
# Check that the response status code is 200
self.assertEqual(response.status_code, 200)
# Check that the response content matches "Hello, World!"
self.assertEqual(response.content.decode('utf-8'), "Hello, World!")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment