summaryrefslogtreecommitdiffstats
path: root/test/TestAnsibleLintRule.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TestAnsibleLintRule.py')
-rw-r--r--test/TestAnsibleLintRule.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/TestAnsibleLintRule.py b/test/TestAnsibleLintRule.py
new file mode 100644
index 0000000..f8bc6d1
--- /dev/null
+++ b/test/TestAnsibleLintRule.py
@@ -0,0 +1,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