ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/lib64/python2.7/site-packages/markupsafe/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/usr/lib64/python2.7/site-packages/markupsafe/tests.pyc

�
�]�Lc@s�ddlZddlZddlmZmZmZdejfd��YZdejfd��YZd�Z	e
dkr�ejd	d
�ndS(i����N(tMarkuptescapet
escape_silenttMarkupTestCasecBs#eZd�Zd�Zd�ZRS(cCskd}td�}||tt|��t|�ks>t�td�ddksZt�td�idd6dks}t�ttd�d	�tks�t�td�}|j�|ks�t�d
tfd��Y}t|��dks�t�td
�|�dkst�td�dks+t�td�j�dksIt�td�j�dksgt�dS(Ns?<script type="application/x-some-script">alert("foo");</script>s<em>username</em>s<em>%s</em>s
<bad user>s<em>&lt;bad user&gt;</em>s<em>%(username)s</em>tusernametfootbartFoocBseZd�Zd�ZRS(cSsdS(Ns<em>awesome</em>((tself((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyt__html__scSsdS(Ntawesome((R((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyt__unicode__ s(t__name__t
__module__R	R(((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyRs	s<em>awesome</em>s<strong>%s</strong>s!<strong><em>awesome</em></strong>s"<>&'s&#34;&lt;&gt;&amp;&#39;s<em>Foo &amp; Bar</em>s	Foo & Bars&lt;test&gt;s<test>(	RtunicodeRtAssertionErrorttypeR	tobjectt	striptagstunescape(RtunsafetsafetxR((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyttest_markup_operationss$,
"cCs1ddl}x|jD]}t||�qWdS(Ni����(t
markupsafet__all__tgetattr(Rtmarkuptitem((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyttest_all_set+scCs[td�t�kst�td�td�ks9t�td�td�ksWt�dS(Ns<foo>u&lt;foo&gt;(RtNoneRRR(R((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyttest_escape_silent0s(RR
RRR(((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyRs	#	tMarkupLeakTestCasecBseZd�ZRS(cCs�t�}xltd�D]^}x<td�D].}td�td�td�td�q)W|jttj���qWt|�dks�td��dS(	Nii�Rs<foo>ufoou<foo>is'ouch, c extension seems to leak objects(tsettxrangeRtaddtlentgctget_objectsR(RtcountstcountR((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyttest_markup_leaks8s	


(RR
R)(((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyR 6scCsNtj�}|jtjt��ttd�sJ|jtjt��n|S(Nt	func_code(tunittestt	TestSuitetaddTestt	makeSuiteRthasattrRR (tsuite((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyR0Ds
t__main__tdefaultTestR0(R%R+RRRRtTestCaseRR R0Rtmain(((s6/usr/lib64/python2.7/site-packages/markupsafe/tests.pyt<module>s0	

Zerion Mini Shell 1.0