diff options
author | David Lord <davidism@gmail.com> | 2017-07-07 09:51:31 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2017-07-07 09:51:31 -0700 |
commit | 8f46becfffe29b4782996b4f57798c6eb1a464a9 (patch) | |
tree | 9d446614404ce56cabab95e890abfcc309afed72 /tests/test_imports.py | |
parent | d26947c7f61900ad6c8dc153c9bc8381d413c2f1 (diff) | |
download | jinja2-8f46becfffe29b4782996b4f57798c6eb1a464a9.tar.gz |
add test and changelog
Diffstat (limited to 'tests/test_imports.py')
-rw-r--r-- | tests/test_imports.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_imports.py b/tests/test_imports.py index 4250eb9..65aae43 100644 --- a/tests/test_imports.py +++ b/tests/test_imports.py @@ -75,6 +75,12 @@ class TestImports(object): test_env.from_string('{% from "foo" import bar, with, context %}') test_env.from_string('{% from "foo" import bar, with with context %}') + with pytest.raises(TemplateSyntaxError): + test_env.from_string('{% from "foo" import bar,, with context %}') + + with pytest.raises(TemplateSyntaxError): + test_env.from_string('{% from "foo" import bar with context, %}') + def test_exports(self, test_env): m = test_env.from_string(''' {% macro toplevel() %}...{% endmacro %} |