From 3630b1ebd981a994b83689a6becb9922f1b20f0a Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Wed, 8 Jan 2020 02:00:20 -0800 Subject: sync cookiecutter to starter project `myproject` --- docs/narr/myproject/tests/test_functional.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/narr/myproject/tests/test_functional.py (limited to 'docs/narr/myproject/tests/test_functional.py') 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 -- cgit v1.2.3