??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 178
Rc @ s0 d Z d d l Z d d l m Z d d l m Z m Z m Z m Z m Z d d l
m Z m Z m
Z
m Z d d l m Z m Z m Z m Z m Z e Z e r d Z n e Z d e f d YZ d
e f d YZ d e f d
YZ d e f d YZ d e f d YZ d Z d S( s
jinja2.testsuite.lexnparse
~~~~~~~~~~~~~~~~~~~~~~~~~~
All the unittests regarding lexing, parsing and syntax.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
iN( t
JinjaTestCase( t Environmentt Templatet TemplateSyntaxErrort UndefinedErrort nodes( t nextt iteritemst text_typet PY2( t Tokent TokenStreamt TOKEN_EOFt TOKEN_BLOCK_BEGINt TOKEN_BLOCK_ENDc C s t | d S( Ni ( t repr( t string( ( s> /usr/lib/python2.7/site-packages/jinja2/testsuite/lexnparse.pyt jinja_string_repr s t TokenStreamTestCasec B s> e Z e d e d e d e d g Z d Z d Z RS( i t i c C s- t | j d d } t | t | d S( Nt foot bar( R t test_tokensR ( t selft ts( ( s> /usr/lib/python2.7/site-packages/jinja2/testsuite/lexnparse.pyt test_simple% s
c C s/ g t | j d d D] } | j ^ q } d S( NR R ( R R t type( R t tt token_types( ( s> /usr/lib/python2.7/site-packages/jinja2/testsuite/lexnparse.pyt test_iter3 s +( t __name__t
__module__R
R
R R R R ( ( ( s> /usr/lib/python2.7/site-packages/jinja2/testsuite/lexnparse.pyR s t
LexerTestCasec B sY e 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 } d S( NsH {% raw %}foo{% endraw %}|{%raw%}{{ bar }}|{% baz %}{% endraw %}( t envt from_string( R t tmpl( ( s> /usr/lib/python2.7/site-packages/jinja2/testsuite/lexnparse.pyt test_raw1: s c C s t j d } d S( Ns' 1 {%- raw -%} 2 {%- endraw -%} 3( R! R" ( R R# ( ( s> /usr/lib/python2.7/site-packages/jinja2/testsuite/lexnparse.pyt test_raw2? s c C s( t d d d d } | j d } d S( Ns {%s %}s ${t }sC {% for item in seq
%}${{'foo': item}|upper}{% endfor %}( R R" ( R R! R# ( ( s> /usr/lib/python2.7/site-packages/jinja2/testsuite/lexnparse.pyt test_balancingC s c C s( t d d d d } | j d } d S( Ns t {R&