From 95b19f97652c3fe5fbcdfe526f0f3e8f9170833b Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 8 Aug 2016 07:30:07 -0700 Subject: [PATCH] Add test_validate_django(). --- tools/tests/test_template_parser.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/tests/test_template_parser.py b/tools/tests/test_template_parser.py index 4639710b3e..630524eca7 100644 --- a/tools/tests/test_template_parser.py +++ b/tools/tests/test_template_parser.py @@ -44,6 +44,16 @@ class ParserTest(unittest.TestCase): ''' validate(text=my_html) + def test_validate_django(self): + # type: () -> None + my_html = ''' + {% include "some_other.html" %} + {% if foo %} +

bar

+ {% endif %} + ''' + validate(text=my_html) + def test_tokenize(self): # type: () -> None tag = 'bla'