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/utils.pyc

�
,��Qc@s�dZddlZddlZddlZddlmZddlmZmZm	Z	defd��YZ
defd��YZd	efd
��YZd�Z
dS(s�
    jinja2.testsuite.utils
    ~~~~~~~~~~~~~~~~~~~~~~

    Tests utilities jinja uses.

    :copyright: (c) 2010 by the Jinja Team.
    :license: BSD, see LICENSE for more details.
i����N(t
JinjaTestCase(tLRUCachetescapetobject_type_reprtLRUCacheTestCasecBseZd�Zd�ZRS(cCs�td�}d|d<d|d<d|d<|dd|d<t|�dksTt�d|kr�d|kr�d|kr�d|ks�t�dS(	Niitaitbtcitd(RtlentAssertionError(tselfR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyttest_simples



cCs�td�}d|d<d|d<|dxwtd�D]i}tjtj||��}|j|jksnt�|j|jks�t�|j|jks5t�q5WdS(Nii*tfooitbari(	RtrangetpickletloadstdumpstcapacityR
t_mappingt_queue(Rtcachetprotocoltcopy((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyttest_pickleable!s

(t__name__t
__module__RR(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyRs	
tHelpersTestCasecBseZd�ZRS(cCs�dtfd��Y}|jtd�d�|jtg�d�|jt|��d�|jtd�d�|jtt�d�dS(	NtXcBseZRS((RR(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyR1si*s
int objectslist objectsjinja2.testsuite.utils.X objecttNonetEllipsis(tobjecttassert_equalRRR(RR((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyttest_object_type_repr0s(RRR"(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyR.stMarkupLeakTestCasecBseZd�ZRS(cCs�t�}xltd�D]^}x<td�D].}td�td�td�td�q)W|jttj���qWt|�dks�td��dS(	Nii�R
s<foo>ufoou<foo>is'ouch, c extension seems to leak objects(tsetRRtaddR	tgctget_objectsR
(Rtcountstcounttitem((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyttest_markup_leaks=s	


(RRR+(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyR#;scCsdtj�}|jtjt��|jtjt��ttd�s`|jtjt��n|S(Nt	func_code(	tunittestt	TestSuitetaddTestt	makeSuiteRRthasattrRR#(tsuite((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyR2Is(t__doc__R&R-Rtjinja2.testsuiteRtjinja2.utilsRRRRRR#R2(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/utils.pyt<module>
s


Zerion Mini Shell 1.0