From 665d2ecdff976915a4f2864623d5546d41db7a4c Mon Sep 17 00:00:00 2001 From: Lars Alexander Blumberg Date: Mon, 14 Aug 2017 10:39:00 +0200 Subject: 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. --- docs/quick_tutorial/static_assets/tutorial/tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/quick_tutorial/static_assets') 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'

Hi Hello View', res.body) + + def test_css(self): + res = self.testapp.get('/static/app.css', status=200) + self.assertIn(b'body', res.body) -- cgit v1.2.3