summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLars Alexander Blumberg <larsblumberg@users.noreply.github.com>2017-08-14 10:39:00 +0200
committerGitHub <noreply@github.com>2017-08-14 10:39:00 +0200
commit665d2ecdff976915a4f2864623d5546d41db7a4c (patch)
treee3a950296c0f9f308b4f2b2cda8c98c618a19db6 /docs
parente83f2aa50917cf1ed07f8bcfb146a6c1b5759e5b (diff)
downloadpyramid-665d2ecdff976915a4f2864623d5546d41db7a4c.tar.gz
pyramid-665d2ecdff976915a4f2864623d5546d41db7a4c.tar.bz2
pyramid-665d2ecdff976915a4f2864623d5546d41db7a4c.zip
Add functional test for css file
Static files were introduced in this tutorial step. As the tutorials emphasise to write tests, this commits adds a test for the static file `app.css` that was introduced with this tutorial step.
Diffstat (limited to 'docs')
-rw-r--r--docs/quick_tutorial/static_assets/tutorial/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/quick_tutorial/static_assets/tutorial/tests.py b/docs/quick_tutorial/static_assets/tutorial/tests.py
index 4381235ec..b560ddf82 100644
--- a/docs/quick_tutorial/static_assets/tutorial/tests.py
+++ b/docs/quick_tutorial/static_assets/tutorial/tests.py
@@ -42,3 +42,7 @@ class TutorialFunctionalTests(unittest.TestCase):
def test_hello(self):
res = self.testapp.get('/howdy', status=200)
self.assertIn(b'<h1>Hi Hello View', res.body)
+
+ def test_css(self):
+ res = self.testapp.get('/static/app.css', status=200)
+ self.assertIn(b'body', res.body)