test models, urls, views - 100%
This commit is contained in:
10
tests/unit/oc_lettings_site/test_view.py
Normal file
10
tests/unit/oc_lettings_site/test_view.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.test import Client
|
||||
from django.urls import reverse
|
||||
|
||||
|
||||
def test_view_should_reply_title_on_home():
|
||||
""" test the content display (title) """
|
||||
c = Client()
|
||||
url = reverse('index')
|
||||
response = c.get(url)
|
||||
assert "Welcome to Holiday Homes</h1>" in response.content.decode()
|
||||
Reference in New Issue
Block a user