ok

Mini Shell

Direktori : /proc/self/root/lib/python2.7/site-packages/jinja2/testsuite/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/jinja2/testsuite/tests.pyc

�
��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(
cCs+tjd�}|j�dks't�dS(Ns.{{ missing is defined }}|{{ true is defined }}s
False|True(tenvtfrom_stringtrendertAssertionError(tselfttmpl((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_definedscCs+tjd�}|j�dks't�dS(Ns{{ 1 is even }}|{{ 2 is even }}s
False|True(RRRR(RR	((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt	test_evenscCs+tjd�}|j�dks't�dS(Ns{{ 1 is odd }}|{{ 2 is odd }}s
True|False(RRRR(RR	((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_oddscCs+tjd�}|j�dks't�dS(Ns){{ "foo" is lower }}|{{ "FOO" is lower }}s
True|False(RRRR(RR	((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_lower!scCs}tjd�}dtfd��Y}|jd|��j�dddddddddddddddgksyt�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.pyR7stmydicttFalsetTrue(RRtdictRtsplitR(RR	R((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_typechecks%s	cCs+tjd�}|j�dks't�dS(NsH{{ [1, 2, 3] is sequence }}|{{ "foo" is sequence }}|{{ 42 is sequence }}sTrue|True|False(RRRR(RR	((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_sequence?s	cCs+tjd�}|j�dks't�dS(Ns){{ "FOO" is upper }}|{{ "foo" is upper }}s
True|False(RRRR(RR	((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt
test_upperGscCs1tjd�}|jdt�dks-t�dS(Ns1{{ foo is sameas false }}|{{ 0 is sameas false }}tfoos
True|False(RRRRR(RR	((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_sameasKscCs1tjd�}|jdd�dks-t�dS(Ns{{ foo is sameas none }}RR(RRRtNoneR(RR	((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_no_paren_for_arg1PscCsLtdt�}|jd�}|jdddtd��dksHt�dS(Nt
autoescapes%{{ x is escaped }}|{{ y is escaped }}txRtys
False|True(RRRRRR(RRR	((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyttest_escapedTs(RRR
RRR
RRRRRR (((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.pyR%Zs(
t__doc__R!tjinja2.testsuiteRtjinja2RRRRR%(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt<module>
s	G

Zerion Mini Shell 1.0