Browse Source

add test for jinja example

master
Charles Reid 1 year 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):
"""
client = app.test_client()
r = client.get('/')

assert r.status_code==200

assert b'Florence' in r.data
assert b'peanut butter' in r.data
assert b'jelly' in r.data
assert b'bananas' in r.data
assert b'<li>bread</li>' in r.data



Loading…
Cancel
Save