%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/distutils/tests/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/distutils/tests/test_config.pyc

ó
Pêáac@sdZddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddl	mZddlm
Z
ddlmZd	Zd
ZdZde
je
je
jejfd
„ƒYZd„ZedkreeƒƒndS(s"Tests for distutils.pypirc.pypirc.iÿÿÿÿN(t
PyPIRCCommand(tDistribution(t
set_threshold(tWARN(tsupport(trun_unittests´[distutils]

index-servers =
    server1
    server2

[server1]
username:me
password:secret

[server2]
username:meagain
password: secret
realm:acme
repository:http://another.pypi/
s.[server-login]
username:tarek
password:secret
sI[distutils]
index-servers =
    pypi

[pypi]
username:tarek
password:xxx
tPyPIRCCommandTestCasecBs,eZd„Zd„Zd„Zd„ZRS(cCs‹tt|ƒjƒ|jƒ|_|jtjd<tjj|jdƒ|_	t
ƒ|_dtfd„ƒY}||_
ttƒ|_dS(sPatches the environment.tHOMEs.pypirctcommandcBs eZd„Zd„ZeZRS(cSstj||ƒdS(N(Rt__init__(tselftdist((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyR	AscSsdS(N((R
((s7/usr/local/lib/python2.7/distutils/tests/test_config.pytinitialize_optionsCs(t__name__t
__module__R	Rtfinalize_options(((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyR@s		N(tsuperRtsetUptmkdtempttmp_dirtostenvirontpathtjointrcRRRt_cmdRRt
old_threshold(R
R((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyR8s	cCs$t|jƒtt|ƒjƒdS(sRemoves the patch.N(RRRRttearDown(R
((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyRJs
cCsÊ|j|jtƒ|j|jƒ}|jƒ}|jƒ}|jƒd
ddddg}|j||ƒ|j|jt	ƒ|jƒ}|jƒ}|jƒdddddg}|j||ƒdS(Ntpasswordtsecrettrealmtpypit
repositoryshttps://upload.pypi.org/legacy/tservertserver1tusernametmesserver-loginttarek(RR(RR(R shttps://upload.pypi.org/legacy/(R!R"(R#R$(RR(RR(R shttps://upload.pypi.org/legacy/(R!sserver-login(R#R%(
t
write_fileRtPYPIRCRRt_read_pypirctitemstsorttassertEqualt
PYPIRC_OLD(R
tcmdtconfigtwaited((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyttest_server_registrationOs"

cCsž|j|jƒ}|jƒ}|jtjj|ƒƒ|jddƒ|jtjj|ƒƒt	|ƒ}z |j
ƒ}|j|tƒWd|j
ƒXdS(NR%txxx(RRt_get_rc_filetassertFalseRRtexistst
_store_pypirct
assertTruetopentreadR+tWANTEDtclose(R
R-Rtftcontent((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyttest_server_empty_registrationjs(R
RRRR0R=(((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyR3s			cCs
tjtƒS(N(tunittestt	makeSuiteR(((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyt
test_suitewst__main__(t__doc__tsysRR>ttempfiletshutiltdistutils.coreRRt
distutils.logRRtdistutils.testsRttest.test_supportRR'R,R9tTempdirManagertLoggingSilencertEnvironGuardtTestCaseRR@R
(((s7/usr/local/lib/python2.7/distutils/tests/test_config.pyt<module>s*
	A	

Zerion Mini Shell 1.0