ok
Direktori : /proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/jinja2/testsuite/ |
Current File : //proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyo |
� ��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"