diff options
| author | Éric Araujo <earaujo@caravan.coop> | 2020-01-16 16:11:18 -0500 |
|---|---|---|
| committer | Éric Araujo <earaujo@caravan.coop> | 2020-01-16 16:11:18 -0500 |
| commit | b102650f3ba20d3153ddff005d49f8c33fef8886 (patch) | |
| tree | ef36934735de9509f6d660782aedd9233382e865 /docs/narr/myproject/tests/test_functional.py | |
| parent | d741e9baca9c6aa76158341aae4b4310b3745b7b (diff) | |
| parent | 9c153e1250e00faa06003c10c3a26886489e6210 (diff) | |
| download | pyramid-b102650f3ba20d3153ddff005d49f8c33fef8886.tar.gz pyramid-b102650f3ba20d3153ddff005d49f8c33fef8886.tar.bz2 pyramid-b102650f3ba20d3153ddff005d49f8c33fef8886.zip | |
merge master
Diffstat (limited to 'docs/narr/myproject/tests/test_functional.py')
| -rw-r--r-- | docs/narr/myproject/tests/test_functional.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/narr/myproject/tests/test_functional.py b/docs/narr/myproject/tests/test_functional.py new file mode 100644 index 000000000..bac5d63f4 --- /dev/null +++ b/docs/narr/myproject/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 |
