diff options
| author | Lars Alexander Blumberg <larsblumberg@users.noreply.github.com> | 2017-08-14 10:39:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-14 10:39:00 +0200 |
| commit | 665d2ecdff976915a4f2864623d5546d41db7a4c (patch) | |
| tree | e3a950296c0f9f308b4f2b2cda8c98c618a19db6 | |
| parent | e83f2aa50917cf1ed07f8bcfb146a6c1b5759e5b (diff) | |
| download | pyramid-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.
| -rw-r--r-- | docs/quick_tutorial/static_assets/tutorial/tests.py | 4 |
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) |
