Adding unittest for space preservation within quotes when splitting args

pull/8301/head
James Cammarata 10 years ago
parent 7344baeffa
commit a8c2d6acd5

@ -707,6 +707,12 @@ class TestUtils(unittest.TestCase):
['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

Loading…
Cancel
Save