%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyc

�
5}�ac@sgdZddlZddlZddlZddlZddlZddlZddlmZm	Z	ddl
mZddlZddl
mZmZmZmZddlmZddlmZdefd	��YZd
efd��YZdejejejejfd
��YZdejejejfd��YZd�Zedkrcee��ndS(sTests for distutils.dist.i����N(tDistributiontfix_help_options(tCommand(tTESTFNtcaptured_stdouttrun_unittesttunlink(tsupport(tlogt	test_distcBs eZdZdgZd�ZRS(s#Sample distutils extension command.ssample-option=tSs	help textcCs
d|_dS(N(tNonet
sample_option(tself((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pytinitialize_optionss(ssample-option=R
s	help text(t__name__t
__module__t__doc__tuser_optionsR(((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyR	s	tTestDistributioncBseZdZd�ZRS(s�Distribution subclasses that avoids the default search for
    configuration files.

    The ._config_files attribute must be set before
    .parse_config_files() is called.
    cCs|jS(N(t
_config_files(R
((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pytfind_config_files&s(RRRR(((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyRstDistributionTestCasecBs�eZd�Zd�Zd
d�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(cCs7tt|�j�tjtjf|_tjd3dS(Ni(tsuperRtsetUptsystargv(R
((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyR/scCs8|jdt_|jdtj(tt|�j�dS(Nii(RRRRttearDown(R
((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyR4scCs*t�}||_|j�|j�|S(N(RRtparse_config_filestparse_command_line(R
tconfigfilestd((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pytcreate_distribution9s
		

cCsttd��!}|jd�|jd�WdQX|jtt�tg}tjjd�t��}|j	|�WdQX|j
d�|j|j�d�t
tj_zFt��}|j	|�WdQX|j
d�|j|j�d�Wdttj_XdS(Ntws	[global]
s!command_packages = foo.bar, splattbuildit(topenRtwritet
addCleanupRRRtappendRR tseektassertEqualtreadtTruet	distutilstdisttDEBUGtFalse(R
tftfileststdout((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_debug_mode@s"
	

cCs9tjjd�|j�}|j|j�dg�dS(NR"sdistutils.command(RRR'R R)tget_command_packages(R
R((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt!test_command_packages_unspecifiedVscCs�ddlm}tjjddddg�|j�}|j|j�ddd	g�|jd�}|j	||�|j|j
d
�dS(Ni����(R	s--command-packagessfoo.bar,distutils.testsR	s
-Ssometextsdistutils.commandsfoo.barsdistutils.teststsometext(tdistutils.tests.test_distR	RRtextendR R)R4tget_command_objtassertIsInstanceR(R
R	Rtcmd((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_command_packages_cmdline[s
cCstjjd�|jtjt�ttd�}z|dIJ|dIJWd|j�X|j	tg�}|j
|j�dddg�dd	dgtjd
)|j	tg�}|j
|j�dd	g�dddgtjd
)|j	tg�}|j
|j�dg�dS(NR"R!s[global]s!command_packages = foo.bar, splatsdistutils.commandsfoo.bartsplats--command-packagestsporkiR#(RRR'R&tosRRR$tcloseR R)R4(R
R0R((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt test_command_packages_configfilejs"

cCs�|j�}tjj|d�}t}|didd6dd6dd6d	d
6dd6�}|jjt|d
��|didd6dd6dd6dd
6dd6�}tjj|d�}|jjt|d
��dS(NR0tattrsuMister Cafétauthors
my.packagetnameuCafé Juniort
maintaineruCafé torréfiétdescriptionu	Héhéhétlong_descriptionR!sMister CafesCafe Juniors
Cafe torrefietHehehetf2(tmkdtempR?tpathtjoinRtmetadatatwrite_pkg_fileR$(R
ttmp_dirtmy_filetklassR-tmy_file2((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_write_pkg_file�s 

cs�g��fd�}|jttdtj�|t_tdidd6dd6dd6dd	6id
6�}|jt��d�|jd
t|��dS(Ncs�j|�dS(N(R'(tmsg(twarns(sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt_warn�stwarnRBtxxxRCRDtversiontxxxxturltoptionsi(	R&tsetattrtwarningsRWRR)tlentassertNotIntdir(R
RVR-((RUsB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_empty_options�s	
cCsiidd6dd6}td|�}|j�|j|jjddg�|j|jjddg�dS(Nsone,twotkeywordst	platformsRBtonettwo(Rtfinalize_optionsR)RMRdRc(R
RBR-((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_finalize_options�s


cCs�t�}|j|jd�|j�}|j|dg�|j|jdg�d|_|j�}|j|dddg�dS(Nsdistutils.commandsone,twoReRf(RR)tcommand_packagesRR4(R
R-tcmds((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_get_command_packages�s	
	cCs9t�}d}idd6}|jt|j||�dS(Ntoktok2tlevel(Rl(RtassertRaisest
ValueErrortannounce(R
R-targstkwargs((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt
test_announce�s	
cs|j��tjdkr3tjj�d�}ntjj�d�}t|d��}|jd�WdQX�fd�}tjj}|tj_zJtj	j
�}|j�}tj	j
didgd	6�}|j�}Wd|tj_X|jt
|�d
t
|��dS(Ntposixs.pydistutils.cfgspydistutils.cfgR!s[distutils]
cs�S(N((RK(t	temp_home(sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt	_expander�sRBs
--no-user-cfgtscript_argsi(RJR?RDRKRLR$R%t
expanduserR,R-RRR)R_(R
t
user_filenameR0Rwtold_expanderRt	all_filesR1((RvsB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_find_config_files_disable�s"
((RRRRR R3R5R<RARSRbRhRkRtR}(((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyR*s											tMetadataTestCasecBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�ZRS(cCs-tt|�j�tjtjf|_dS(N(RR~RRR(R
((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyR�scCs8|jdt_|jdtj(tt|�j�dS(Nii(RRRR~R(R
((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyR�scCsMidd6dd6dgd6}t|�}|j|�}|jd|�dS(NtBoaRDs3.0RYs#Programming Language :: Python :: 3tclassifierssMetadata-Version: 1.1(Rtformat_metadatatassertIn(R
RBR-tmeta((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_classifier�s

cCsJidd6dd6dd6}t|�}|j|�}|jd|�dS(NRRDs3.0RYshttp://example.org/boatdownload_urlsMetadata-Version: 1.1(RR�R�(R
RBR-R�((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_download_urls

cCsotjd�}idd6dd6|d6}t|�}|j|�}|jdd
d�}|j||�dS(Nsc        example::
              We start here
            and continue here
          and end here.tpackageRDs1.0RYRGs
it s        (ttextwraptdedentRR�treplaceR�(R
t	long_descRBR-R�((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_long_descriptions	

cCs�idd6dd6}t|�}|j|�}|jd|�|jd|j��|jd|j��|jd|j��dS(	NR�RDs1.0RYsMetadata-Version: 1.0s	provides:s	requires:s
obsoletes:(RR�R�R`tlower(R
RBR-R�((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_simple_metadatas

cCs�idd6dd6ddgd6}t|�}|j|jj�ddg�|j|j�ddg�|j|�}|jd|�|jd|j��|jd	|j��dS(
NR�RDs1.0RYspackage.subtprovidessMetadata-Version: 1.1s	requires:s
obsoletes:(RR)RMtget_providesR�R�R`R�(R
RBR-R�((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt
test_provides!s


cCs/|jttidd6dd6dgd6�dS(NR�RDs1.0RYsmy.pkg (splat)R�(RoRpR(R
((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_provides_illegal/s
cCs�idd6dd6ddgd6}t|�}|j|jj�ddg�|j|j�ddg�|j|�}|jd|�|jd	|j��|jd
|�|jd|�|jd|j��dS(
NR�RDs1.0RYtothersanother (==1.0)trequiressMetadata-Version: 1.1s	provides:sRequires: othersRequires: another (==1.0)s
obsoletes:(RR)RMtget_requiresR�R�R`R�(R
RBR-R�((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt
test_requires5s


cCs/|jttidd6dd6dgd6�dS(NR�RDs1.0RYsmy.pkg (splat)R�(RoRpR(R
((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_requires_illegalEs
cCs�idd6dd6ddgd6}t|�}|j|jj�ddg�|j|j�ddg�|j|�}|jd|�|jd	|j��|jd
|j��|jd|�|jd|�dS(
NR�RDs1.0RYR�sanother (<1.0)t	obsoletessMetadata-Version: 1.1s	provides:s	requires:sObsoletes: othersObsoletes: another (<1.0)(RR)RMt
get_obsoletesR�R�R`R�(R
RBR-R�((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_obsoletesKs


cCs/|jttidd6dd6dgd6�dS(NR�RDs1.0RYsmy.pkg (splat)R�(RoRpR(R
((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_obsoletes_illegal[s
cCs&tj�}|jj|�|j�S(N(tStringIORMRNtgetvalue(R
R-tsio((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyR�ascCstjdkrd}nd}|j�}tjj||�}t|d�}z|jd�Wd|j�Xz�t�}t	j
dkr�|tjd<|j�}|j
||�nt	j
d	kr�|tjd<|j�}|j
||d
||f�nWdtj|�XdS(NRus.pydistutils.cfgspydistutils.cfgR!t.tlinuxtdarwintHOMEtwin32s%r not found in %r(R�R�(R?RDRJRKRLR$R%R@RRtplatformtenvironRR�tremove(R
Rzttemp_dirR0R-R1((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_custom_pydistutilsfs*		

cCsDd
dg}t|�}|j|d	d�|j|dd
�dS(NtatbtcRiiiii(R�R�R�R(iiii(R�R�R�(iii(RR)(R
thelp_tuplest
fancy_options((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_fix_help_options�scCs�|jtjtjj�t�}gt_d|_d|_	t
��}|j�WdQXg|j�j
d�D]}|j�dkro|^qo}|j|�dS(Nissetup.pys
R#(R&Rt
set_thresholdt_global_logt	thresholdRRRthelptscript_nameRRR�tsplittstript
assertTrue(R
R-tstlinetoutput((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_show_help�s				cCs0idd6dd6dd6dd6d	d
6ddgd
6dgd6}t|�}|j}tj�}|j|�|jd�|j|�|j|jd�|j|jd�|j|j	d�|j|j
d	�|j|jddg�|j|jdg�|j|j
d�|j|jdg�dS(NR�RDs1.0RYtdescRGRXRFshttp://example.comR�ReRfRctfooR�itUNKNOWN(RRMR�RNR(t
read_pkg_fileR)RDRYRFR�RcRdR�RR�(R
RBR-RMtPKG_INFO((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyttest_read_metadata�s*


	


(RRRRR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyR~�s"						
								#		cCs<tj�}|jtjt��|jtjt��|S(N(tunittestt	TestSuitetaddTestt	makeSuiteRR~(tsuite((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt
test_suite�st__main__(RR?R�RR�R^R�tdistutils.distRRt
distutils.cmdRR,ttest.test_supportRRRRtdistutils.testsRRR	RtTempdirManagertLoggingSilencertEnvironGuardtTestCaseRR~R�R(((sB/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_dist.pyt<module>s."	��	

Zerion Mini Shell 1.0