1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Adding unittest for space preservation within quotes when splitting args

This commit is contained in:
James Cammarata 2014-07-25 15:23:32 -05:00
parent 7344baeffa
commit a8c2d6acd5

View file

@ -707,6 +707,12 @@ class TestUtils(unittest.TestCase):
['a', '{% if x %}', 'y', '{%else %}', '{{meow}}', '{% endif %}', 'cookiechip\ndone'] ['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 jinja2 nesting detection
# invalid quote nesting detection # invalid quote nesting detection