tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
\\¬Qc@sdZddlZddlZddlZddlZddlZddlmZddlmZddl    m
Z
ddl    m Z ddl m Z ddlmZd    Zd
Zd Zd 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((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/tests/test_config.pyR    AscSsdS(N((R
((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/tests/test_config.pytinitialize_optionsCs(t__name__t
__module__R    R tfinalize_options(((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/tests/test_config.pyR@s        N(tsuperRtsetUptmkdtempttmp_dirtostenvirontpathtjointrcRR Rt_cmdRRt old_threshold(R
R((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/tests/test_config.pyR8s     cCs$t|jƒtt|ƒjƒdS(sRemoves the patch.N(RRRRttearDown(R
((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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
repositoryshttp://pypi.python.org/pypitservertserver1tusernametmes server-loginttarek(RR(RR(R shttp://pypi.python.org/pypi(R!R"(R#R$(RR(RR(R shttp://pypi.python.org/pypi(R!s server-login(R#R%(
t
write_fileRtPYPIRCRR t _read_pypirctitemstsortt assertEqualt
PYPIRC_OLD(R
tcmdtconfigtwaited((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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( RR t _get_rc_filet
assertTrueRRtexistst _store_pypirctopentreadR+tWANTEDtclose(R
R-Rtftcontent((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/tests/test_config.pyttest_server_empty_registrationjs   (R RRRR0R<(((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/tests/test_config.pyR3s            cCs tjtƒS(N(tunittestt    makeSuiteR(((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/tests/test_config.pyt
test_suitewst__main__(t__doc__tsysRR=ttempfiletshutiltdistutils.coreRRt distutils.logRRtdistutils.testsRttest.test_supportRR'R,R8tTempdirManagertLoggingSilencert EnvironGuardtTestCaseRR?R (((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/tests/test_config.pyt<module>s*     
    A