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:
parent
7344baeffa
commit
a8c2d6acd5
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue