ACC SHELL

Path : /usr/lib/python/distutils/tests/
File Upload :
Current File : //usr/lib/python/distutils/tests/test_config.pyo

Ñò
tÄMc@sÙdZddkZddkZddkZddklZddklZddklZddkl	Z	ddk
lZdZd	Z
d
Zdeieifd„ƒYZd
„ZedjoeiddƒndS(s"Tests for distutils.pypirc.pypirc.iÿÿÿÿN(t
PyPIRCCommand(tDistribution(t
set_threshold(tWARN(tsupports´[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|ƒiƒtiidƒotid|_n
d|_|iƒ}|tid<ti	i
|dƒ|_tƒ|_
dtfd„ƒY}||_ttƒ|_dS(sPatches the environment.tHOMEs.pypirctcommandcBs eZd„Zd„ZeZRS(cSsti||ƒdS(N(Rt__init__(tselftdist((s1/usr/lib/python2.6/distutils/tests/test_config.pyR?scSsdS(N((R	((s1/usr/lib/python2.6/distutils/tests/test_config.pytinitialize_optionsAs(t__name__t
__module__RRtfinalize_options(((s1/usr/lib/python2.6/distutils/tests/test_config.pyR>s		N(tsuperRtsetUptostenvironthas_keyt	_old_hometNonetmkdtemptpathtjointrcRR
Rt_cmdRRt
old_threshold(R	ttempdirR((s1/usr/lib/python2.6/distutils/tests/test_config.pyR2s	
	cCsR|idjotid=n|itid<t|iƒtt|ƒiƒdS(sRemoves the patch.RN(	RRRRRRRRttearDown(R	((s1/usr/lib/python2.6/distutils/tests/test_config.pyRHs

c	Csþt|idƒ}z|itƒWd|iƒX|i|iƒ}|iƒ}|iƒ}|i	ƒdddddg}|i
||ƒt|idƒ}|itƒ|iƒ|iƒ}|iƒ}|i	ƒdddddg}|i
||ƒdS(Ntwtpasswordtsecrettrealmtpypit
repositoryshttp://pypi.python.org/pypitservertserver1tusernametmesserver-loginttarek(RR (R!R"(R#shttp://pypi.python.org/pypi(R$R%(R&R'(RR (R!R"(R#shttp://pypi.python.org/pypi(R$sserver-login(R&R((topenRtwritetPYPIRCtcloseRR
t_read_pypirctitemstsorttassertEqualst
PYPIRC_OLD(R	tftcmdtconfigtwaited((s1/usr/lib/python2.6/distutils/tests/test_config.pyttest_server_registrationQs,



cCs‡|i|iƒ}|iƒ}|itii|ƒƒ|iddƒ|itii|ƒƒt|ƒi	ƒ}|i
|tƒdS(NR(txxx(RR
t_get_rc_filetassert_RRtexistst
_store_pypircR)treadR0tWANTED(R	R3Rtcontent((s1/usr/lib/python2.6/distutils/tests/test_config.pyttest_server_empty_registrationts(RR
RRR6R?(((s1/usr/lib/python2.6/distutils/tests/test_config.pyR0s				#cCs
titƒS(N(tunittestt	makeSuiteR(((s1/usr/lib/python2.6/distutils/tests/test_config.pyt
test_suite‚st__main__tdefaultTestRB(t__doc__tsysRR@tdistutils.coreRRt
distutils.logRRtdistutils.testsRR+R1R=tTempdirManagertTestCaseRRBRtmain(((s1/usr/lib/python2.6/distutils/tests/test_config.pyt<module>s
R	


ACC SHELL 2018