??????????????
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 @ sd d Z d d l Z d d l m Z d d l m Z m Z e ƒ Z d e f d „ ƒ YZ d „ Z d S( s¯
jinja2.testsuite.tests
~~~~~~~~~~~~~~~~~~~~~~
Who tests the tests?
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
iÿÿÿÿN( t
JinjaTestCase( t Markupt Environmentt
TestsTestCasec B sb e 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 ƒ } d S( Ns. {{ missing is defined }}|{{ true is defined }}( t envt from_string( t selft tmpl( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt test_defined s c C s t j d ƒ } d S( Ns {{ 1 is even }}|{{ 2 is even }}( R R ( R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt test_even s c C s t j d ƒ } d S( Ns {{ 1 is odd }}|{{ 2 is odd }}( R R ( R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt test_odd s c C s t j d ƒ } d S( Ns) {{ "foo" is lower }}|{{ "FOO" is lower }}( R R ( R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_lower! s c C s) t j d ƒ } d t f d „ ƒ Y} d S( Nsý
{{ 42 is undefined }}
{{ 42 is defined }}
{{ 42 is none }}
{{ none is none }}
{{ 42 is number }}
{{ 42 is string }}
{{ "foo" is string }}
{{ "foo" is sequence }}
{{ [1] is sequence }}
{{ range is callable }}
{{ 42 is callable }}
{{ range(5) is iterable }}
{{ {} is mapping }}
{{ mydict is mapping }}
{{ [] is mapping }}
t MyDictc B s e Z RS( ( t __name__t
__module__( ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyR 7 s ( R R t dict( R R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt test_typechecks% s c C s t j d ƒ } d S( NsH {{ [1, 2, 3] is sequence }}|{{ "foo" is sequence }}|{{ 42 is sequence }}( R R ( R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_sequence? s c C s t j d ƒ } d S( Ns) {{ "FOO" is upper }}|{{ "foo" is upper }}( R R ( R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_upperG s c C s t j d ƒ } d S( Ns1 {{ foo is sameas false }}|{{ 0 is sameas false }}( R R ( R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt test_sameasK s c C s t j d ƒ } d S( Ns {{ foo is sameas none }}( R R ( R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt test_no_paren_for_arg1P s c C s" t d t ƒ } | j d ƒ } d S( Nt
autoescapes% {{ x is escaped }}|{{ y is escaped }}( R t TrueR ( R R R ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt test_escapedT s ( R
R R R R
R R R R R R R ( ( ( s: /usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyR s c C s&