%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_mimetypes.pyc

�
5}�ac@s�ddlZddlZddlZddlZddlmZge_ee_ej	�dej
fd��YZejej
jd�d�dej
fd��Y�Zd	�Zed
kr�e�ndS(i����N(ttest_supporttMimeTypesTestCasecBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCstj�|_dS(N(t	mimetypest	MimeTypestdb(tself((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pytsetUpscCs�|j}||jjd�d
�||jjd�d�||jjd�d�||jjd�d�||jjd	�d�||jjd�d�dS(Nsfoo.htmls	text/htmlsfoo.tgzsapplication/x-tartgzips
foo.tar.gzs	foo.tar.Ztcompresssfoo.tar.bz2tbzip2s
foo.tar.xztxz(s	text/htmlN(sapplication/x-tarR(sapplication/x-tarR(sapplication/x-tarR(sapplication/x-tarR	(sapplication/x-tarR
(tassertEqualRt
guess_typetNone(Rteq((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_default_datas	cCsR|j}|jj}||d�d�||d�d�||d�d�dS(	Nsdata:,thisIsTextPlains
text/plainsdata:;base64,thisIsTextPlainsdata:text/x-foo,thisIsTextXFoos
text/x-foo(s
text/plainN(s
text/plainN(s
text/x-fooN(RRRR
(RRR((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_data_urlss
	cCs^|j}tjd�}|jj|�||jjd�d�||jjd�d�dS(Ns x-application/x-unittest pyunit
s
foo.pyunitsx-application/x-unittests.pyunit(sx-application/x-unittestN(RtStringIORtreadfpRR
tguess_extension(RRtsio((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_file_parsing$s	cCs�|j}||jjddt�d�||jjddt�d�||jjddt�d�||jjddt�d�dS(Nsfoo.xultstricts	image/jpgstext/xuls.jpg(NN(stext/xulN(RRRtTrueR
RtFalse(RR((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_non_standard_types,s
	c	Cs�|j}|j}t|jjddt��}||tddddddg�k�|jjd	dt�}|j�||d
g�|jjd	dt�}||g�dS(Ns
text/plainRs.bats.cs.hs.kshs.pls.txts	image/jpgs.jpg(Rt
assertTruetsetRtguess_all_extensionsRRtsort(RRtunlesstall((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_guess_all_types5s		(
(t__name__t
__module__RRRRRR (((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyRs							twinsWindows onlytWin32MimeTypesTestCasecBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs#tjj�|_tjj�dS(N(Rt	types_maptcopytoriginal_types_maptclear(R((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyRHscCs$tjj�tjj|j�dS(N(RR%R(tupdateR'(R((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttearDownMs
cCse|j}tj�tj�}||jd�d�||jd�d�||jd�d	�dS(
Nsfoo.txts
text/plains	image.jpgs
image/jpegs	image.pngs	image/png(s
text/plainN(s
image/jpegN(s	image/pngN(RRtinitRRR
(RRR((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_registry_parsingRs	
csSddl�dtf�fd��Y}|�t_ztj�Wd�t_XdS(Ni����t
MockWinregcseZ�fd�ZRS(csX|dkr�fd�S|dkr2�fd�S|dkrK�fd�St�|�S(NtEnumKeycs�j||�dS(Ns�(R.(tkeyti(t_winreg(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyt<lambda>cttOpenKeycs�j||jd��S(Ns�(R4trstrip(R/tname(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR2eR3tQueryValueExcs
d�jfS(Nuтекст/простой(tREG_SZ(tsubkeytlabel(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR2gR3(tgetattr(RR6(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyt__getattr__as


(R!R"R<((R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR-`s(R1tobjectRR+(RR-((R1s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_non_latin_extension]s
csSddl�dtf�fd��Y}|�t_ztj�Wd�t_XdS(Ni����R-cseZ�fd�ZRS(cs&|dkr�fd�St�|�S(NR7cs
d�jfS(Nuтекст/простой(R8(R9R:(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR2xR3(R;(RR6(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR<vs
(R!R"R<((R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR-us(R1R=RR+(RR-((R1s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_non_latin_typerscsvddl�dtf�fd��Y}|�t_z1tj�|jttjj�dt��Wd�t_XdS(Ni����R-cseZ�fd�ZRS(cs&|dkr�fd�St�|�S(NR7cs
d�jfS(Nu
text/plain(R8(R9R:(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR2�R3(R;(RR6(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR<�s
(R!R"R<((R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR-�si(	R1R=RR+Rt
isinstanceR%tvalueststr(RR-((R1s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_type_map_values�s
'csSddl�dtf�fd��Y}|�t_ztj�Wd�t_XdS(Ni����R-cs&eZ�fd�Z�fd�ZRS(cs1|�jkr!tdd��n�j||�S(NisAccess is denied(tHKEY_CLASSES_ROOTtWindowsErrorR4(RR/R6(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR4�scs
t�|�S(N(R;(RR6(R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR<�s(R!R"R4R<((R1(s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR-�s(R1R=RR+(RR-((R1s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyttest_registry_read_error�s(	R!R"RR*R,R>R?RCRF(((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyR$Fs						cCstjtt�dS(N(Rtrun_unittestRR$(((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyt	test_main�s	t__main__(RRtunittesttsysttestRt
knownfilesRtinitedt_default_mime_typestTestCaseRt
skipUnlesstplatformt
startswithR$RHR!(((s</opt/plesk/python/2.7/lib64/python2.7/test/test_mimetypes.pyt<module>s		
6]	

Zerion Mini Shell 1.0