%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/test/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyc

�
5}�ac@s�ddlZddlmZmZddlmZmZddlZdejejej	ej
fd��YZdefd��YZd�Z
ed	kr�e
�ndS(
i����N(ttest_supporttstring_tests(t
UserStringt
MutableStringtUserStringTestcBs)eZeZd�Zd�Zd�ZRS(cGsG|j|�}|j|�}t||�|�}|j||�dS(N(tfixtypetgetattrtassertEqual(tselftresulttobjectt
methodnametargst
realresult((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt
checkequalscGsX|j|�}|j|��}t||�|�WdQX|j|jjdd�dS(Nit(RtassertRaisesRtassertNotEqualt	exceptionR(RtexctobjRRtcm((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pytcheckraisesscGs&|j|�}t||�|�dS(N(RR(RR
RR((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt	checkcall&s(t__name__t
__module__Rt	type2testRRR(((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyR	s	
	tMutableStringTestcBs_eZeZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�ZRS(	cCsdS(N((R((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt	test_hash/scCsy|jd�}|jt|jdd�|jt|jdd�d|d<|j|d�d|d<|j|d�dS(	Ntfooi����tbarii����tfobaritbarobar(RRt
IndexErrort__setitem__R(Rts((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyttest_setitem2s

cCs�|jd�}|jt|jd�|jt|jd�|d=|j|d�|d=|j|d�|d=|j|d�dS(	NRi����ii����tfoitoR(RRR!t__delitem__R(RR#((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyttest_delitem;scCs�|jd�}d|(|j|d�d|dd+|j|d�td�|dd+|j|d�d|d	d
+|j|d�dS(NRRiitbfoortai����i*ii
t42(RRR(RR#((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt
test_setsliceFs

cCsG|jd�}|dd5|j|d�|dd5|j|d�dS(Ntfoobarii
Ri����R%(RR(RR#((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt
test_delsliceQs


c	
Csd}tjtj}x�|D]�}x�|D]�}x�dD]�}|j|�}t|�}||||�}|j�|||||�<d
j|�||||�<|j|d
j|��||||�=||||�=|j|d
j|��q7Wq*WqWdS(
Niiiiidi����i����i��i����R(
iNiiiidi����i����i��i����(Nii����(	tNonetstringt
ascii_letterstdigitsRtlisttreversetjoinR(	RtindicestorigtstarttstoptstepR#tLtdata((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyttest_extended_set_del_sliceXs



cCs?|jd�}|j�}|j||�|j|t�dS(NR-(Rt	immutableRtassertIsInstanceR(RR#ts2((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyttest_immutablenscCsg|jd�}|d7}|j|d�|td�7}|j|d�|d7}|j|d�dS(NRRR-tbazt	foobarbazi*tfoobarbaz42(RRR(RR#((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt	test_iaddts

cCsa|jd�}|d9}|j|d�|d9}|j|d�|d9}|j|d�dS(NRiitfoofooi����R(RR(RR#((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt	test_imul}s


(
RRRRRR$R(R,R.R=RARERG(((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyR+s										cCsMtj��;tjddt�tjddt�tjtt�WdQXdS(Ntignores .*MutableString has been removeds).*__(get|set|del)slice__ has been removed(twarningstcatch_warningstfilterwarningstDeprecationWarningRtrun_unittestRR(((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt	test_main�s
	t__main__(R0ttestRRRRRIt
CommonTesttMixinStrUnicodeUserStringTesttMixinStrStringUserStringTesttMixinStrUserStringTestRRRNR(((s=/opt/plesk/python/2.7/lib64/python2.7/test/test_userstring.pyt<module>s[		

Zerion Mini Shell 1.0