ok
Direktori : /lib/python2.7/site-packages/jinja2/testsuite/ |
Current File : //lib/python2.7/site-packages/jinja2/testsuite/inheritance.pyc |
� ,��Qc @ s� d Z d d l Z d d l m Z d d l m Z m Z m Z d Z d Z d Z d Z d Z d Z d Z e d e i e d 6e d 6e d 6e d 6e d 6e d 6e d 6� d e � Z d e f d � � YZ d e f d � � YZ d � Z d S( s� jinja2.testsuite.inheritance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tests the template inheritance feature. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. i����N( t JinjaTestCase( t Environmentt DictLoadert TemplateErrors� |{% block block1 %}block 1 from layout{% endblock %} |{% block block2 %}block 2 from layout{% endblock %} |{% block block3 %} {% block block4 %}nested block 4 from layout{% endblock %} {% endblock %}|sJ {% extends "layout" %} {% block block1 %}block 1 from level1{% endblock %}sq {% extends "level1" %} {% block block2 %}{% block block5 %}nested block 5 from level2{% endblock %}{% endblock %}s {% extends "level2" %} {% block block5 %}block 5 from level3{% endblock %} {% block block4 %}block 4 from level3{% endblock %} sK {% extends "level3" %} {% block block3 %}block 3 from level4{% endblock %} s� {% extends "layout" %} {% block block1 %} {% if false %} {% block block2 %} this should workd {% endblock %} {% endif %} {% endblock %} s� {% extends "layout" %} {% extends "layout" %} {% block block1 %} {% if false %} {% block block2 %} this should workd {% endblock %} {% endif %} {% endblock %} t loadert layoutt level1t level2t level3t level4t workingt doubleet trim_blockst InheritanceTestCasec B s� e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s+ t j d � } | j � d k s'