diff options
| author | Steve Piercy <web@stevepiercy.com> | 2021-01-09 07:55:02 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2021-01-09 07:55:02 -0800 |
| commit | ab8b801d5ac13feac86219ad8860f0426140d0de (patch) | |
| tree | 3409ceacef059302183a1c7fc0efbed62e61a00f /docs/quick_tour/package/tests/test_functional.py | |
| parent | 8143e8679b5025a648272ec17942307c243c59b5 (diff) | |
| download | pyramid-ab8b801d5ac13feac86219ad8860f0426140d0de.tar.gz pyramid-ab8b801d5ac13feac86219ad8860f0426140d0de.tar.bz2 pyramid-ab8b801d5ac13feac86219ad8860f0426140d0de.zip | |
Update Quick Tutorial and Quick Tour cookiecutter steps
Diffstat (limited to 'docs/quick_tour/package/tests/test_functional.py')
| -rw-r--r-- | docs/quick_tour/package/tests/test_functional.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/quick_tour/package/tests/test_functional.py b/docs/quick_tour/package/tests/test_functional.py new file mode 100644 index 000000000..bac5d63f4 --- /dev/null +++ b/docs/quick_tour/package/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 |
