duck-booking-tool/duckbook/tests.py

11 lines
246 B
Python

from django.test import TestCase, Client
class TestFront(TestCase):
def setUp(self):
self.client = Client()
def test_front_page(self):
response = self.client.get('/')
self.assertEqual(response.status_code, 200)