summaryrefslogtreecommitdiff
path: root/docs/quick_tour/logging/tests/test_functional.py
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2021-01-09 08:05:34 -0800
committerSteve Piercy <web@stevepiercy.com>2021-01-09 08:05:34 -0800
commit6326c7ca69a5ee53a27f36ce7eec4784efaef345 (patch)
treec395a2810a157c51eae3be086e5a9fe5f4ec7177 /docs/quick_tour/logging/tests/test_functional.py
parent4d5d68db549c2ed297ba83679cf7ceb5169eaab3 (diff)
downloadpyramid-6326c7ca69a5ee53a27f36ce7eec4784efaef345.tar.gz
pyramid-6326c7ca69a5ee53a27f36ce7eec4784efaef345.tar.bz2
pyramid-6326c7ca69a5ee53a27f36ce7eec4784efaef345.zip
Update logging and sessions steps in Quick Tour
Diffstat (limited to 'docs/quick_tour/logging/tests/test_functional.py')
-rw-r--r--docs/quick_tour/logging/tests/test_functional.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/quick_tour/logging/tests/test_functional.py b/docs/quick_tour/logging/tests/test_functional.py
new file mode 100644
index 000000000..bac5d63f4
--- /dev/null
+++ b/docs/quick_tour/logging/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