ok
Direktori : /proc/self/root/usr/lib/python2.7/site-packages/jinja2/testsuite/ |
Current File : //proc/self/root/usr/lib/python2.7/site-packages/jinja2/testsuite/regression.pyc |
� ,��Qc @ s� d Z d d l Z d d l m Z d d l m Z m Z m Z m Z m Z m Z d d l m Z e � Z d e f d � � YZ d e f d � � YZ d � Z d S( s� jinja2.testsuite.regression ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tests corner cases and bugs. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. i����N( t JinjaTestCase( t Templatet Environmentt DictLoadert TemplateSyntaxErrort TemplateNotFoundt PrefixLoader( t text_typet CornerTestCasec B s e Z d � Z d � Z RS( c C s t j d � } | j d d � d k s- t � t j d � } | j � d k sT t � t j d � } | j � d k s{ t � d S( Nsv {%- for item in (1, 2, 3, 4) -%} [{{ item }}] {%- endfor %} {{- item -}} t itemi* s [1][2][3][4]42s� {%- for item in (1, 2, 3, 4) -%} [{{ item }}] {%- endfor %} {%- set item = 42 %} {{- item -}} s� {%- set item = 42 %} {%- for item in (1, 2, 3, 4) -%} [{{ item }}] {%- endfor %} {{- item -}} ( t envt from_stringt rendert AssertionError( t selft t( ( s? /usr/lib/python2.7/site-packages/jinja2/testsuite/regression.pyt test_assigned_scoping s c C s t j d � } | j � d k s'