projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bb3ab7
)
Added a testcase for the last change.
author
Armin Ronacher
<armin.ronacher@active-4.com>
Wed, 1 Apr 2009 17:17:31 +0000
(19:17 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Wed, 1 Apr 2009 17:17:31 +0000
(19:17 +0200)
--HG--
branch : trunk
tests/test_parser.py
patch
|
blob
|
history
diff --git
a/tests/test_parser.py
b/tests/test_parser.py
index 8d39ab0f2a9df049b12d44e7f01da25d0c10b0a8..ca9506daa76e112ac4dfb6e798b038e6e05f6233 100644
(file)
--- 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'