ok

Mini Shell

Direktori : /lib/python2.7/site-packages/jinja2/testsuite/
Upload File :
Current File : //lib/python2.7/site-packages/jinja2/testsuite/tests.pyo

�
��Rc@sddZddlZddlmZddlmZmZe�Zdefd��YZd�Z	dS(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(tMarkuptEnvironmentt
TestsTestCasecBsbeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
cCstjd�}dS(Ns.{{ missing is defined }}|{{ true is defined }}(tenvtfrom_string(tselfttmpl((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_definedscCstjd�}dS(Ns{{ 1 is even }}|{{ 2 is even }}(RR(RR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt	test_evenscCstjd�}dS(Ns{{ 1 is odd }}|{{ 2 is odd }}(RR(RR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_oddscCstjd�}dS(Ns){{ "foo" is lower }}|{{ "FOO" is lower }}(RR(RR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_lower!scCs)tjd�}dtfd��Y}dS(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 }}
        tMyDictcBseZRS((t__name__t
__module__(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyR7s(RRtdict(RRR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_typechecks%s	cCstjd�}dS(NsH{{ [1, 2, 3] is sequence }}|{{ "foo" is sequence }}|{{ 42 is sequence }}(RR(RR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_sequence?s	cCstjd�}dS(Ns){{ "FOO" is upper }}|{{ "foo" is upper }}(RR(RR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_upperGscCstjd�}dS(Ns1{{ foo is sameas false }}|{{ 0 is sameas false }}(RR(RR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_sameasKscCstjd�}dS(Ns{{ foo is sameas none }}(RR(RR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_no_paren_for_arg1PscCs"tdt�}|jd�}dS(Nt
autoescapes%{{ x is escaped }}|{{ y is escaped }}(RtTrueR(RRR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_escapedTs(R
RRR	R
RRRRRRR(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyRs									cCs&tj�}|jtjt��|S(N(tunittestt	TestSuitetaddTestt	makeSuiteR(tsuite((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyRZs(
t__doc__Rtjinja2.testsuiteRtjinja2RRRRR(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt<module>
s	G

Zerion Mini Shell 1.0