Lars Alexander Blumberg
2017-08-14 665d2ecdff976915a4f2864623d5546d41db7a4c
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.
1 files modified
4 ■■■■ changed files
docs/quick_tutorial/static_assets/tutorial/tests.py 4 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/static_assets/tutorial/tests.py
@@ -42,3 +42,7 @@
    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)