summaryrefslogtreecommitdiff
path: root/docs/narr/myproject/tests/test_functional.py
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2020-01-08 02:00:20 -0800
committerSteve Piercy <web@stevepiercy.com>2020-01-08 02:00:20 -0800
commit3630b1ebd981a994b83689a6becb9922f1b20f0a (patch)
tree7fe2c695957730bc5251b70761ea3c54c5667b9d /docs/narr/myproject/tests/test_functional.py
parent14403a3f6d7cb870aefafa6bfa8999f86aa29c86 (diff)
downloadpyramid-3630b1ebd981a994b83689a6becb9922f1b20f0a.tar.gz
pyramid-3630b1ebd981a994b83689a6becb9922f1b20f0a.tar.bz2
pyramid-3630b1ebd981a994b83689a6becb9922f1b20f0a.zip
sync cookiecutter to starter project `myproject`
Diffstat (limited to 'docs/narr/myproject/tests/test_functional.py')
-rw-r--r--docs/narr/myproject/tests/test_functional.py7
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