config root man

Current Path : /usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/test/test_mhlib.pyo

³ò
h”Rc	@s„dZddkZddklZlZlZddkZddkZddkZddk	Z	ei
idƒp#ei
djpei
idƒoedei
dƒ‚ned	Zei
ied
ƒZei
iedƒZd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zdeifd„ƒYZd„ZedjoeƒndS(s1
   Tests for the mhlib module
   Nick Mathewson
iÿÿÿÿN(trun_unittesttTESTFNtTestSkippedtwintriscostatheossskipped on %s -- stoo many Unix assumptionst_MHtMHs.mh_profilecCstii|idƒŒS(Nt/(tostpathtjointsplit(tf((s+/usr/local/lib/python2.5/test/test_mhlib.pytnormFscCsitii|ƒd}|o"tii|ƒot|ƒnt|dƒ}|i|ƒ|iƒdS(Nitw(R	R
Rtexiststmkdirstopentwritetclose(tfnametcontentstdirR
((s+/usr/local/lib/python2.5/test/test_mhlib.pyt	writeFile"s
cCs&t|ƒ}|iƒ}|iƒ|S(N(RtreadR(RR
tr((s+/usr/local/lib/python2.5/test/test_mhlib.pytreadFile*s
cCsQg}|iƒD]\}}|d||fq~}ttdi|ƒƒdS(Ns%s: %s
t(t	iteritemsRt
_mhprofileR(tdictt_[1]tktvR((s+/usr/local/lib/python2.5/test/test_mhlib.pytwriteProfile0s7cCs0t|ƒ}ttiitdƒd|ƒdS(NtcontextsCurrent-Folder: %s
(RRR	R
Rt_mhpath(tfolder((s+/usr/local/lib/python2.5/test/test_mhlib.pytwriteContext4scCs3t|ƒ}ttiit|dƒd|ƒdS(Ns
.mh_sequencesscur: %s
(RRR	R
RR%(R&tcur((s+/usr/local/lib/python2.5/test/test_mhlib.pytwriteCurMessage9scCsžt|ƒ}dig}|iƒD]\}}|d||fq#~ƒ}d||f}ttiit|ƒƒttiit|t|ƒƒ|ƒdS(NRs%s: %s
s%s
%s
(	RRRRR	R
R%Rtstr(R&tntheaderstbodyR R!R"R((s+/usr/local/lib/python2.5/test/test_mhlib.pytwriteMessage>s
@cCstitiitƒtƒS(N(tmhlibRR	R
tabspathR%R(((s+/usr/local/lib/python2.5/test/test_mhlib.pytgetMHEscCs[|idƒ}g}|D]*}t|ƒdjo||iƒqq~}|iƒ|S(Ns
i(Rtlentstriptsort(tstlinesR tline((s+/usr/local/lib/python2.5/test/test_mhlib.pyt	sortLinesHs>
cCs[tii|ƒp
|djodSntii|ƒ\}}t|ƒti|ƒdS(NR(R	R
RRRtmkdir(Rtbasetfile((s+/usr/local/lib/python2.5/test/test_mhlib.pyROs
 
cCs¥tii|ƒpdSnxhti|ƒD]W}tii||ƒ}tii|ƒot|ƒq+yti|ƒWq+q+Xq+Wyti|ƒWnnXdS(N(	R	R
RtlistdirRtisdirtdeltreetunlinktrmdir(RR
tfullname((s+/usr/local/lib/python2.5/test/test_mhlib.pyR>Vst
MhlibTestscBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsmttƒttƒthtiitƒd<dd<dd<ƒtddhdd	<d
d<dd
<dƒtddhd
d	<dd<dd
<dƒxTt	ddƒt	dddƒD]3}td|hdd	<d|d<d|ƒqÁWd„}|ddƒ|ddƒ|ddƒ|ddƒ|ddƒ|d dƒ|d!dƒ|d!dƒdS("NtPathtemacstEditorscamping holidaysignored-attributetinboxisMrs. PremisetFromsMrs. ConclusiontTos18 July 2001tDatesHullo, Mrs. Conclusion!
is29 July 2001sHullo, Mrs. Premise!
iieiÉtwidetnowheresmessage #%stSubjectsThis is message number %s
cSs4t||hd||fd<d||fƒdS(Ns
Message %s/%sRLs This is message number %s in %s
(R.(R&R+((s+/usr/local/lib/python2.5/test/test_mhlib.pytdeep‚s	sdeep/f1isdeep/f2iiRMs
deep/f2/f3(
R>t_mhrootRR%R#R	R
R0R.trange(tselftiRM((s+/usr/local/lib/python2.5/test/test_mhlib.pytsetUphs6

		
		
	 		






cCsttƒdS(N(R>RN(RP((s+/usr/local/lib/python2.5/test/test_mhlib.pyttearDownscCs|tdƒtddƒtƒ}|i}||idƒdƒ||idƒdƒ||iƒtii	t
ƒƒ||iƒdƒ|idƒ||iƒdƒ|t
tiit
dƒƒdƒ|idƒ|idƒ}||iƒtiitii	t
ƒdƒƒ||iƒtiitii	t
ƒdd	ƒƒ||id
ƒtiitii	t
ƒddƒƒdS(NRFiRERDsnot-setRJR$sCurrent-Folder: wide
s
.mh_sequencesit1(R'R)R1tassertEqualst
getprofiletNonetgetpathR	R
R0R%t
getcontextt
setcontextRRt
openfoldertgetfullnametgetsequencesfilenametgetmessagefilename(RPtmhteqRF((s+/usr/local/lib/python2.5/test/test_mhlib.pyt
test_basic’s(

		

"%cCsNtƒ}|i}|iƒ}|iƒ||dddgƒ|iƒ}|iƒttddddddgƒ}|iƒ|||ƒ|idƒ}|iƒ||ttddgƒƒ|idƒ}|iƒ||ttdddgƒƒ||itdƒƒtdƒgƒ||idƒgƒ||idƒgƒdS(NRMRFRJsdeep/f1sdeep/f2s
deep/f2/f3(	R1RUtlistfoldersR4tlistallfolderstmapRtlistsubfolderstlistallsubfolders(RPR_R`tfoldersttfolders((s+/usr/local/lib/python2.5/test/test_mhlib.pyttest_listfolders¬s(		





%c		stƒ}|i‰tddƒ|idƒ‰ˆiƒ}ˆ|tddƒtdddƒƒˆˆiƒdƒˆidƒˆtt	i
itddƒƒd	ƒ‡‡fd
†}|dtddƒƒ|d
tddƒtdddƒƒ|d
tddƒtdddƒƒ|dtddƒƒ|dtddƒƒ|dtdddƒƒ|ddgƒ|ddgƒ|ddgƒ|ddgƒ|ddddgƒ|dtddƒƒ|dtd ddƒƒ|d!dddgƒdd"d#d$d%d&d'd(g}g}tdd)ƒD]}||jo||q+q+~}ˆi
hdgd<|d*<|d+<ƒtt	i
itddƒƒ}t|ƒ}ˆ|d,d-d.gƒ|d*|ƒ|d/dgƒ|d0dd"gƒ|d1d'd(gƒdS(2NRJi7iieiÉiics
.mh_sequencesscur: 99
csˆˆi|ƒ|ƒdS(N(t
parsesequence(tseqtval(R`R
(s+/usr/local/lib/python2.5/test/test_mhlib.pytseqeqÔss5-55i8s90-108iZims10:10i
is10:+10s101:10iyR(t.tprevibtnextidscur:-3ias	first-curs150-lasti—s	prev-nextiii
iiiiitlowprimet	lowcomposscur: 5s,lowcompos: 6 8-10 12 14-16 18 20-22 24-28 30slowprime: 5 7 11 13 17 19 23 29s
lowprime:1s
lowprime:2slowprime:-2(R1RUR)R[tlistmessagesROt
getcurrentt
setcurrentRR	R
RR%tputsequencesR8(	RPR_tallRmt	lowprimesR txRrtseqs((R
R`s+/usr/local/lib/python2.5/test/test_mhlib.pyt
test_sequenceÇsN		
&
&&;		

cs"tƒ}|i}|idƒ|id|iƒjƒtiitdƒ}|itii	|ƒƒ|i
dƒ‰‡fd†}|dƒ|dƒ|dƒ|tˆidƒƒdƒ|ˆi
ƒdddgƒti|ƒ}|iƒ||ddd	gƒˆiddgƒti|ƒ}|iƒ||d
dd	gƒ|ˆi
ƒdgƒ|dƒ|d
ƒ|dƒ|idƒ|i
dƒ}||i
ƒgƒˆid|dƒˆid
|dƒ|ˆi
ƒddgƒ||i
ƒddgƒ|t|idƒƒdƒˆid|dƒ|ˆi
ƒddgƒ|t|idƒƒdƒˆiddg|ƒ|ˆi
ƒgƒ||i
ƒdddddgƒ|t|idƒƒdƒ|idƒ|idƒ|id|iƒjƒ|itii	|ƒƒdS(Ntdummy1cs-d||f}ˆi|ti|ƒƒdS(Ns(From: foo
Subject: %s

Dummy Message %s
(t
createmessagetStringIO(R+tmsg(R
(s+/usr/local/lib/python2.5/test/test_mhlib.pytcreatesiii	s&From: foo
Subject: 9

Dummy Message 9
t7t8t9s,7s,8i
iitdummy2iis(From: foo
Subject: 10

Dummy Message 10
iis(From: foo
Subject: 12

Dummy Message 12
(R1RUt
makefoldertassert_RbR	R
RR%RR[RR^RsR<R4tremovemessagestmovemessagetcopymessagetrefilemessagestdeletefolder(RPR_R`R
R€tfilestf2((R
s+/usr/local/lib/python2.5/test/test_mhlib.pyttest_modifyþs^		









"

cCsìtƒ}|i}|idƒ}|idƒ}||idƒdƒ||idƒdƒt|iƒƒ}||ddd	gƒt|id
„ƒƒ}||ddgƒ||iƒdƒ||idƒdƒ|ii	ƒ~dS(
NRFiRGsMrs. PremiseRHsMrs. ConclusionsDate: 18 July 2001sFrom: Mrs. PremisesTo: Mrs. ConclusioncSst|ƒdjS(i(R2(th((s+/usr/local/lib/python2.5/test/test_mhlib.pyt<lambda>LssHullo, Mrs. Conclusion!

i(
R1RUR[topenmessaget	getheaderR8t
getheadertexttgetbodytexttfpR(RPR_R`R
RR6((s+/usr/local/lib/python2.5/test/test_mhlib.pyt	test_read<s"			
	

(	t__name__t
__module__RRRSRaRiR{RŽR–(((s+/usr/local/lib/python2.5/test/test_mhlib.pyRBgs	'				7	>cCsttƒdS(N(RRB(((s+/usr/local/lib/python2.5/test/test_mhlib.pyt	test_mainWst__main__( t__doc__tunittestttest.test_supportRRRR	R~tsysR/tplatformt
startswithRNR
RR%RRRRR#R'R)R.R1R8RR>tTestCaseRBR™R—(((s+/usr/local/lib/python2.5/test/test_mhlib.pys<module>s6#

											ð	


Man Man