12 lines
303 B
Python
12 lines
303 B
Python
def test_home_startpage(client):
|
|
"""Test view startpage() from home.py."""
|
|
|
|
response = client.get("/")
|
|
|
|
# assert good status code
|
|
assert response.status_code == 200
|
|
|
|
# assert that the returned data is good HTML
|
|
assert response.data.startswith(b"<!DOCTYPE html>\n")
|
|
|
|
# more test cases: POST, |