%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_netrc.pyc

ó
Nêáac@s‘ddlZddlZddlZddlZddlZddlmZejZdej	fd„ƒYZ
d„ZedkreƒndS(iÿÿÿÿN(ttest_supportt
NetrcTestCasecBs°eZed„Zd„Zd„Zd„Zd„Zd„Zd„Z	dd„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zejejdkdƒd„ƒZRS(cCstj|ƒ}d}tjdkr1|d7}ntt|ƒ}|j|ƒWdQX|rr|jtj	tƒnt
j
tƒS(Ntwtcygwintt(ttextwraptdedenttsystplatformtopent
temp_filenametwritet
addCleanuptostunlinktnetrc(tselft	test_datatcleanuptmodetfp((s+/usr/local/lib/python2.7/test/test_netrc.pytmake_nrcs
cCsx|jddtƒ}|j|jdd
ƒ|j|jddƒ|j|jƒdtƒ}|j|j|jƒdS(Ns‡            machine host1.domain.com login log1 password pass1 account acct1
            default login log2 password pass2
            Rshost1.domain.comtlog1tacct1tpass1tdefaulttlog2tpass2(RRR(RNR(RtFalsetassertEqualthoststNonet__repr__tTrue(Rtnrctnrc2((s+/usr/local/lib/python2.7/test/test_netrc.pyttest_defaultscCs@|jdƒ}|j|jiddgd6ddgd6ƒdS(Ns‰            macdef macro1
            line1
            line2

            macdef macro2
            line3
            line4
            sline1
sline2
tmacro1sline3
sline4
tmacro2(RRtmacros(RR"((s+/usr/local/lib/python2.7/test/test_netrc.pyttest_macross	cCs3|j|ƒ}|j|jddd|fƒdS(Nshost.domain.comtlogtacct(RRR(RR"tpasswd((s+/usr/local/lib/python2.7/test/test_netrc.pyt_test_passwords,scCs|jddƒdS(NsV            machine host.domain.com login log password #pass account acct
            s#pass(R,(R((s+/usr/local/lib/python2.7/test/test_netrc.pyttest_password_with_leading_hash0scCs|jddƒdS(NsV            machine host.domain.com login log password pass# account acct
            spass#(R,(R((s+/usr/local/lib/python2.7/test/test_netrc.pyt test_password_with_trailing_hash5scCs|jddƒdS(NsV            machine host.domain.com login log password pa#ss account acct
            spa#ss(R,(R((s+/usr/local/lib/python2.7/test/test_netrc.pyt test_password_with_internal_hash:stpasscCsJ|j|ƒ}|j|jddd|fƒ|j|jddƒdS(Nsfoo.domain.comtbarsbar.domain.comtfooR0(R2NR0(RRRR(RR"R+((s+/usr/local/lib/python2.7/test/test_netrc.pyt
_test_comment?s cCs|jdƒdS(Ns˜            # comment
            machine foo.domain.com login bar password pass
            machine bar.domain.com login foo password pass
            (R3(R((s+/usr/local/lib/python2.7/test/test_netrc.pyt test_comment_before_machine_lineDscCs|jdƒdS(Ns—            #comment
            machine foo.domain.com login bar password pass
            machine bar.domain.com login foo password pass
            (R3(R((s+/usr/local/lib/python2.7/test/test_netrc.pyt)test_comment_before_machine_line_no_spaceKscCs|jdƒdS(Ns            #
            machine foo.domain.com login bar password pass
            machine bar.domain.com login foo password pass
            (R3(R((s+/usr/local/lib/python2.7/test/test_netrc.pyt*test_comment_before_machine_line_hash_onlyRscCs|jdƒdS(NsŒ            machine foo.domain.com login bar password pass # comment
            machine bar.domain.com login foo password pass
            (R3(R((s+/usr/local/lib/python2.7/test/test_netrc.pyt#test_comment_at_end_of_machine_lineYscCs|jdƒdS(Ns‹            machine foo.domain.com login bar password pass #comment
            machine bar.domain.com login foo password pass
            (R3(R((s+/usr/local/lib/python2.7/test/test_netrc.pyt,test_comment_at_end_of_machine_line_no_space_scCs|jddƒdS(NsŒ            machine foo.domain.com login bar password #pass #comment
            machine bar.domain.com login foo password pass
            s#pass(R3(R((s+/usr/local/lib/python2.7/test/test_netrc.pyt1test_comment_at_end_of_machine_line_pass_has_hashestposixsPOSIX only testc
Csåtj}tj|ƒ|jtj|ƒtjj|dƒ}t|dƒ}|j	dƒWdQXtj
ƒp}|jd|ƒtj|dƒt
j
ƒ}|j|jdd
ƒtj|d	ƒ|jt
jt
j
ƒWdQXdS(Ns.netrctwts                machine foo.domain.com login bar password pass
                default login foo password pass
                tHOMEi€sfoo.domain.comR1R0i’(R1NR0(RtTESTFNR
tmkdirRtrmtreetpathtjoinR	RtEnvironmentVarGuardtsettchmodRRRRtassertRaisestNetrcParseError(RtdtfntftenvironR"((s+/usr/local/lib/python2.7/test/test_netrc.pyt
test_securityls	

(t__name__t
__module__R!RR$R(R,R-R.R/R3R4R5R6R7R8R9tunittestt
skipUnlessR
tnameRK(((s+/usr/local/lib/python2.7/test/test_netrc.pyRs		
										cCstjtƒdS(N(Rtrun_unittestR(((s+/usr/local/lib/python2.7/test/test_netrc.pyt	test_main‚st__main__(
RR
RNRRttestRR=R
tTestCaseRRRRL(((s+/usr/local/lib/python2.7/test/test_netrc.pyt<module>s<	|	

Zerion Mini Shell 1.0