Files
courses/bsawf/08-testing-and-code-quality/snakeeyes/tests/page/test_views.py
T
2025-05-20 11:57:43 -04:00

19 lines
648 B
Python

from flask import url_for
class TestPage(object):
def test_home_page(self, client):
""" Home page should respond with a success 200. """
response = client.get(url_for('page.home'))
assert response.status_code == 200
def test_terms_page(self, client):
""" Terms page should respond with a success 200. """
response = client.get(url_for('page.terms'))
assert response.status_code == 200
def test_privacy_page(self, client):
""" Privacy page should respond with a success 200. """
response = client.get(url_for('page.privacy'))
assert response.status_code == 200