def test_double_extends(self):
"""Ensures that a template with more than 1 {% extends ... %} usage
raises a ``TemplateError``.
"""
try:
tmpl = env.get_template('doublee')
except Exception as e:
assert isinstance(e, TemplateError)
inheritance.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录