Skip to content
Snippets Groups Projects
Commit bc98aeb2 authored by Boziean, Ciprian I (UG - Comp Sci & Elec Eng)'s avatar Boziean, Ciprian I (UG - Comp Sci & Elec Eng)
Browse files

Added testing

parent 2c5dcd8d
No related branches found
No related tags found
No related merge requests found
File added
from django.test import TestCase 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment