ó ÈÏ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(tMarkupt Environmentt TestsTestCasecBsbeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( cCstjdƒ}dS(Ns.{{ missing is defined }}|{{ true is defined }}(tenvt from_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.pyt test_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 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.pyRZs ( t__doc__Rtjinja2.testsuiteRtjinja2RRRRR(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/tests.pyt s   G