From b525c9374d3b12eab3ad26da9a88e4f5b3843c5d Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 5 Jun 2010 14:37:09 +0200 Subject: [PATCH] Added failing testcase for raw. --HG-- branch : trunk --- jinja2/testsuite/lexnparse.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.26.2