comparison tests/test_templating_jinjaengine.py @ 452:55026b7bb1bf

tests: Fix Jinja2 test. Looks like Jinja is stripping rendered output, so now that we actually skip Jinja altogether when there's no `{` in the string, we need to adjust the tests.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 07 Jul 2015 19:58:07 -0700
parents 4b1019bb2533
children ab5c6a8ae90a
comparison
equal deleted inserted replaced
451:838f3964f400 452:55026b7bb1bf
35 35
36 36
37 def test_layout(): 37 def test_layout():
38 contents = "Blah\n" 38 contents = "Blah\n"
39 layout = "{{content}}\nFor site: {{foo}}\n" 39 layout = "{{content}}\nFor site: {{foo}}\n"
40 expected = "Blah\nFor site: bar" 40 expected = "Blah\n\nFor site: bar"
41 fs = (mock_fs() 41 fs = (mock_fs()
42 .withConfig(app_config) 42 .withConfig(app_config)
43 .withAsset('templates/blah.jinja', layout) 43 .withAsset('templates/blah.jinja', layout)
44 .withPage('pages/foo', config={'layout': 'blah'}, 44 .withPage('pages/foo', config={'layout': 'blah'},
45 contents=contents)) 45 contents=contents))