18 lines
523 B
Python
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
|