From: Armin Ronacher Date: Wed, 1 Apr 2009 17:17:31 +0000 (+0200) Subject: Added a testcase for the last change. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3617a0276951007e8b5cfd43e4f96d38a14176ea;p=jinja2.git Added a testcase for the last change. --HG-- branch : trunk --- diff --git a/tests/test_parser.py b/tests/test_parser.py index 8d39ab0..ca9506d 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -59,6 +59,7 @@ LINE_SYNTAX_PRIORITY2 = '''\ I'm a multiline comment */ # for item in seq: * ${item} ## this is just extra stuff + ## extra stuff i just want to ignore # endfor ''' @@ -110,4 +111,4 @@ def test_line_syntax_priority(): assert tmpl.render(seq=[1, 2]).strip() == '* 1\n* 2' env = Environment('{%', '%}', '${', '}', '/*', '*/', '#', '##') tmpl = env.from_string(LINE_SYNTAX_PRIORITY2) - assert tmpl.render(seq=[1, 2]).strip() == '* 1\n* 2' + assert tmpl.render(seq=[1, 2]).strip() == '* 1\n\n* 2'