Commit f531294f5e1207aa57bfb4360baa4a279e05e1ad

Golmote 2017-01-28T10:35:59

Add tests for Django

diff --git a/tests/languages/django/comment_feature.test b/tests/languages/django/comment_feature.test
new file mode 100644
index 0000000..d41c448
--- /dev/null
+++ b/tests/languages/django/comment_feature.test
@@ -0,0 +1,16 @@
+{##}
+{# This a Django template example #}
+{# Multi-line
+comment #}
+
+----------------------------------------------------
+
+[
+	["comment", "{##}"],
+	["comment", "{# This a Django template example #}"],
+	["comment", "{# Multi-line\r\ncomment #}"]
+]
+
+----------------------------------------------------
+
+Checks for comments.
\ No newline at end of file
diff --git a/tests/languages/django/property_feature.test b/tests/languages/django/property_feature.test
new file mode 100644
index 0000000..5369bba
--- /dev/null
+++ b/tests/languages/django/property_feature.test
@@ -0,0 +1,68 @@
+{% extends "base_generic.html" %}
+{% block body %}
+<a href="{{ story.get_absolute_url }}">
+{{ story.headline|upper }}
+</a>
+{% endblock %}
+
+----------------------------------------------------
+
+[
+	["property", [
+		"{% ",
+		["keyword", "extends"],
+		["string", "\"base_generic.html\""],
+		" %}"
+	]],
+	["property", [
+		"{% ",
+		["keyword", "block"],
+		["variable", "body"],
+		" %}"
+	]],
+	["tag", [
+		["tag", [
+			["punctuation", "<"],
+			"a"
+		]],
+		["attr-name", ["href"]],
+		["attr-value", [
+			["punctuation", "="],
+			["punctuation", "\""]
+		]],
+		["property", [
+			"{{ ",
+			["variable", "story"],
+			["punctuation", "."],
+			["variable", "get_absolute_url"],
+			" }}"
+		]],
+		["attr-name", ["\""]],
+		["punctuation", ">"]
+	]],
+	["property", [
+		"{{ ",
+		["variable", "story"],
+		["punctuation", "."],
+		["variable", "headline"],
+		["keyword", "|"],
+		["function", "upper"],
+		" }}"
+	]],
+	["tag", [
+        ["tag", [
+            ["punctuation", "</"],
+            "a"
+        ]],
+        ["punctuation", ">"]
+    ]],
+    ["property", [
+        "{% ",
+        ["keyword", "endblock"],
+        " %}"
+    ]]
+]
+
+----------------------------------------------------
+
+Checks for properties.
\ No newline at end of file