blob: f8bc6d1d6f346416ee3e241dd0be687da248308d (
plain)
1
2
3
4
5
6
7
|
from ansiblelint.rules import AnsibleLintRule
def test_unjinja():
input = "{{ a }} {% b %} {# try to confuse parsing inside a comment { {{}} } #}"
output = "JINJA_EXPRESSION JINJA_STATEMENT JINJA_COMMENT"
assert AnsibleLintRule.unjinja(input) == output
|