projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3351a93
)
Added failing testcase for raw.
author
Armin Ronacher
<armin.ronacher@active-4.com>
Sat, 5 Jun 2010 12:37:09 +0000
(14:37 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Sat, 5 Jun 2010 12:37:09 +0000
(14:37 +0200)
--HG--
branch : trunk
jinja2/testsuite/lexnparse.py
patch
|
blob
|
history
diff --git
a/jinja2/testsuite/lexnparse.py
b/jinja2/testsuite/lexnparse.py
index c56d510e69bc088e1bffe81f385b70b320a6210c..99802a3353312ea199d57fbaacbb51987160c38c 100644
(file)
--- 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