From: Armin Ronacher Date: Sat, 5 Jun 2010 12:37:09 +0000 (+0200) Subject: Added failing testcase for raw. X-Git-Tag: 2.5.1~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b525c9374d3b12eab3ad26da9a88e4f5b3843c5d;p=jinja2.git Added failing testcase for raw. --HG-- branch : trunk --- diff --git a/jinja2/testsuite/lexnparse.py b/jinja2/testsuite/lexnparse.py index c56d510..99802a3 100644 --- a/jinja2/testsuite/lexnparse.py +++ b/jinja2/testsuite/lexnparse.py @@ -36,6 +36,10 @@ class LexerTestCase(JinjaTestCase): '{%raw%}{{ bar }}|{% baz %}{% endraw %}') assert tmpl.render() == 'foo|{{ bar }}|{% baz %}' + def test_raw2(self): + tmpl = env.from_string('1 {%- raw -%} 2 {%- endraw -%} 3') + assert tmpl.render() == '123' + def test_balancing(self): env = Environment('{%', '%}', '${', '}') tmpl = env.from_string('''{% for item in seq