Skip to content

Commit

Permalink
Adding unittest for space preservation within quotes when splitting args
Browse files Browse the repository at this point in the history
  • Loading branch information
jimi-c committed Jul 25, 2014
1 parent 146a368 commit 8959338
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/units/TestUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,12 @@ def _test_combo(input, desired):
['a', '{% if x %}', 'y', '{%else %}', '{{meow}}', '{% endif %}', 'cookiechip\ndone']
)

# test space preservation within quotes
_test_combo(
'content="1 2 3 4 " foo=bar',
['content="1 2 3 4 "', 'foo=bar']
)

# invalid jinja2 nesting detection
# invalid quote nesting detection

Expand Down

0 comments on commit 8959338

Please sign in to comment.