From 6326c7ca69a5ee53a27f36ce7eec4784efaef345 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Sat, 9 Jan 2021 08:05:34 -0800 Subject: Update logging and sessions steps in Quick Tour --- docs/quick_tour/sessions/tests/test_functional.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/quick_tour/sessions/tests/test_functional.py (limited to 'docs/quick_tour/sessions/tests/test_functional.py') diff --git a/docs/quick_tour/sessions/tests/test_functional.py b/docs/quick_tour/sessions/tests/test_functional.py new file mode 100644 index 000000000..bac5d63f4 --- /dev/null +++ b/docs/quick_tour/sessions/tests/test_functional.py @@ -0,0 +1,7 @@ +def test_root(testapp): + res = testapp.get('/', status=200) + assert b'Pyramid' in res.body + +def test_notfound(testapp): + res = testapp.get('/badurl', status=404) + assert res.status_code == 404 -- cgit v1.2.3