KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/22697/root/usr/lib64/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/usr/lib64/python2.4/test/test_uu.pyo
mς
‚=5Dc@sμdZdkZdklZdkZdkZdkZdkZdkZdklZdZ	dZ
de
iddƒd	Zd
ei
fd„ƒYZdei
fd
„ƒYZdei
fd„ƒYZd„ZedjoeƒndS(s%
Tests for uu module.
Nick Mathewson
N(stest_support(sStringIOs5The smooth-scaled python crept over the sleeping dog
sKM5&AE('-M;V]T:"US8V%L960@<'ET:&]N(&-R97!T(&]V97(@=&AE('-L965P
(:6YG(&1O9PH sbegin %03o %s
t%s%%s
 
end
tUUTestcBs,tZd„Zd„Zd„Zd„ZRS(NcCs—titƒ}tiƒ}ti||dƒ|i|i	ƒt
dƒtitƒ}tiƒ}ti||ddƒ|i|i	ƒt
dƒdS(Ntt1iΆi€(iΆR(i€R(t	cStringIOtStringIOt	plaintexttinptouttuutencodetselftassertEqualtgetvaluetencodedtextwrapped(R
RR((t$/usr/lib64/python2.4/test/test_uu.pyttest_encodescCs–titdƒ}tiƒ}ti||ƒ|i|i	ƒt
ƒtiddtdƒ}tiƒ}ti||ƒ|i|i	ƒt
ƒdS(NiΆRs(UUencoded files may contain many lines,
s%even some that have 'begin' in them.
(iΆst1(iΆst1(RRR
RRRtdecodeR
RRR(R
RR((Rttest_decode!scCsutidtƒ}tiƒ}y!ti||ƒ|idƒWn.ti	j
o}|it|ƒdƒnXdS(Ns
begin 644 t1
sNo exception thrownsTruncated input file(
RRtencodedtextRRRRR
tfailtErrorteRtstr(R
RRR((Rttest_truncatedinput/scCsqtidƒ}tiƒ}y!ti||ƒ|idƒWn.tij
o}|i
t|ƒdƒnXdS(NtsNo exception throwns'No valid begin line found in input file(RRRRRRR
RRRRR(R
RRR((Rttest_missingbegin8s(t__name__t
__module__RRRR(((RRs	
			tUUStdIOTestcBs,tZd„Zd„Zd„Zd„ZRS(NcCsti|_ti|_dS(N(tsyststdinR
tstdout(R
((RtsetUpCscCs|it_|it_dS(N(R
RRR(R
((RttearDownGscCsXtitƒt_tiƒt_tiddddƒ|i	tii
ƒtdƒdS(Nt-RiΆ(iΆst1(RRRRRRRR	R
RRR
(R
((RRKs
cCsRtitdƒt_tiƒt_tiddƒ|i	tii
ƒtƒdS(NiΆRR"(iΆst1(RRR
RRRRRR
RRR(R
((RRTs(RRR R!RR(((RRAs				t
UUFileTestcBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCspy|iƒWn"ttfj
o
‚nnXyti|iƒWn"ttfj
o
‚nnXdS(N(tftcloset
SystemExittKeyboardInterrupttostunlinktname(R
R$((Rt_kill\scCs$tid|_tid|_dS(Ntito(ttest_supporttTESTFNR
ttmpinttmpout(R
((RR kscCs|`|`dS(N(R
R0R1(R
((RR!oscCsθzΖt|idƒ}|itƒ|iƒt|idƒ}t|idƒ}t	i
|||iddƒ|iƒ|iƒt|idƒ}|iƒ}|iƒ|i
|td|ifƒWd|i|ƒ|i|ƒXdS(Ntwbtrbtwtmodei€tr(topenR
R0tfintwriteRR%R1tfoutRR	treadtsRR
R+(R
R8R<R:((RRss 




!
cCs°z›t|idƒ}|itd|ifƒ|iƒt|idƒ}ti	|ƒ|iƒt|idƒ}|i
ƒ}|iƒ|i|t
ƒWd|i|ƒXdS(NR2i€R3R6(R7R
R0R$R9R
R1R%RRR;R<RRR+(R
R$R<((RR‡s



cCs“z~titd|ifƒ}t|idƒ}ti	|ƒ|i
ƒt|idƒ}|ititi	|ƒ|i
ƒWd|i
|ƒXdS(Ni€R3(RRR
R
R1R$R7R0RRR%tassertRaisesRR+(R
R$((Rttest_decodetwice™s

(RRR+R R!RRR>(((RR#Zs					cCstitttƒdS(N(R.trun_unittestRRR#(((Rt	test_main¨st__main__(t__doc__tunittestttestR.RR(RRRRRtreplaceR
tTestCaseRRR#R@R(R.RRRRR
RCR#RRRR@RR(((Rt?s	
$	
,N	


Anon7 - 2021