2022-11-13 10:39:28 -08:00

18 lines
523 B
Python

def test_index(client):
response = client.get("/")
assert response.status_code == 200
assert "<title>" in response.text
assert "<h1>" in response.text
def test_about(client):
response = client.get("/about")
assert response.status_code == 200
assert "<title>" in response.text
assert "<h1>" in response.text
def test_palindrome(client):
response = client.get("/palindrome")
assert response.status_code == 200
assert "<title>" in response.text
assert "<h1>" in response.text