Browse Source

add test for jinja example

Charles Reid 10 months ago
parent
commit
028f12c817
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      jinja/test_jinja.py

+ 7
- 0
jinja/test_jinja.py View File

@@ -17,6 +17,13 @@ class TheJinjaTest(unittest.TestCase):
17 17
         """
18 18
         client = app.test_client()
19 19
         r = client.get('/')
20
+
20 21
         assert r.status_code==200
21 22
 
23
+        assert b'Florence' in r.data
24
+        assert b'peanut butter' in r.data
25
+        assert b'jelly' in r.data
26
+        assert b'bananas' in r.data
27
+        assert b'<li>bread</li>' in r.data
28
+
22 29