python (3.11.7)

(root)/
lib/
python3.11/
distutils/
tests/
__pycache__/
test_config.cpython-311.opt-1.pyc

edZddlZddlZddlmZddlmZddlmZddlmZddl	m
Z
dZd	Zd
Z
Gdde
je
je
jejZGd
deZedkrejdSdS)z"Tests for distutils.pypirc.pypirc.N)
PyPIRCCommand)Distribution)
set_threshold)WARN)supportz[distutils]

index-servers =
    server1
    server2
    server3

[server1]
username:me
password:secret

[server2]
username:meagain
password: secret
realm:acme
repository:http://another.pypi/

[server3]
username:cbiggles
password:yh^%#rest-of-my-password
z.[server-login]
username:tarek
password:secret
zI[distutils]
index-servers =
    pypi

[pypi]
username:tarek
password:xxx
c(eZdZfdZfdZxZS)BasePyPIRCCommandTestCasectt|||_|jt
jd<|jt
jd<t
j|jd|_	t|_Gddt}||_
tt|_dS)zPatches the environment.HOMEUSERPROFILEz.pypircceZdZdZdZeZdS)0BasePyPIRCCommandTestCase.setUp.<locals>.commandc0tj||dSN)r__init__)selfdists  O/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/distutils/tests/test_config.pyrz9BasePyPIRCCommandTestCase.setUp.<locals>.command.__init__Cs&tT22222cdSr)rs rinitialize_optionszCBasePyPIRCCommandTestCase.setUp.<locals>.command.initialize_optionsEsrN)__name__
__module____qualname__rrfinalize_optionsrrrcommandrBs4
3
3
3


1rrN)superr	setUpmkdtemptmp_dirosenvironpathjoinrcrrr_cmdrr
old_threshold)rr	__class__s  rrzBasePyPIRCCommandTestCase.setUp9s
'..44666||~~!\
6$(L
=!',,t|Y77 NN		2	2	2	2	2m	2	2	2	*400rc~t|jtt|dS)zRemoves the patch.N)rr(rr	tearDown)rr)s rr+z"BasePyPIRCCommandTestCase.tearDownLs7d()))
'..7799999r)rrrrr+
__classcell__)r)s@rr	r	4sQ
11111&:::::::::rr	c eZdZdZdZdZdS)PyPIRCCommandTestCasec*||jt||j}|}t
t|}gd}|	||||jt|}t
t|}gd}|	||dS)N)passwordsecretrealmpypi
repositoryzhttps://upload.pypi.org/legacy/)serverserver1)usernameme)r0r3r6)r8zserver-login)r:tarek)
write_filer&PYPIRCr'r_read_pypirclistsorteditemsassertEqual
PYPIRC_OLDrcmdconfigwaiteds    rtest_server_registrationz.PyPIRCCommandTestCase.test_server_registrationTs	
(((ii	""!!##fV\\^^,,--===	
(((	
,,,!!##fV\\^^,,--EEE	
(((((rc.||j}|}|tj||dd|tj|t|}	|
}||t|
dS#|
wxYw)Nr<xxx)r'r_get_rc_fileassertFalser"r$exists
_store_pypirc
assertTrueopenreadrCWANTEDclose)rrFr&fcontents     rtest_server_empty_registrationz4PyPIRCCommandTestCase.test_server_empty_registrationmsii	""




++,,,'5)))r**+++HH	ffhhGWf---
GGIIIIIAGGIIIIs9/C>>Dc@||jt||j}d|_|}tt|	}gd}|
||dS)Nserver3))r1zyh^%#rest-of-my-passwordr3r6)r8rY)r:cbiggles)r=r&r>r'rr7r?r@rArBrCrEs    rtest_config_interpolationz/PyPIRCCommandTestCase.test_config_interpolationzs(((ii	"""!!##fV\\^^,,--CCC	
(((((rN)rrrrIrWr[rrrr.r.RsA)))2)))))rr.__main__)__doc__r"unittestdistutils.corerr
distutils.logrrdistutils.testsrr>rDrSTempdirManagerLoggingSilencerEnvironGuardTestCaser	r.rmainrrr<module>rgs((				((((((''''''''''''######
.

::::: 6#3#0$-:::<3)3)3)3)3)53)3)3)lzHMOOOOOr