config root man

Current Path : /usr/local/lib/python2.5/bsddb/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/bsddb/test/test_recno.pyo

³ò
h”Rc@sédZddkZddkZddkZddkZddklZddkZddklZyddk	l
Z
Wn#ej
oddkl
Z
nXdZ
deifd„ƒYZd	„Zed
joeiddƒndS(
s%TestCases for exercising a Recno DB.
iÿÿÿÿN(tpprint(tverbose(tdbt4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZtSimpleRecnoTestCasecBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCstiƒ|_dS(N(ttempfiletmktemptfilename(tself((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pytsetUpscCsJyti|iƒWn/tj
o#}|itijo‚qFnXdS(N(tostremoveRtOSErrorterrnotEEXIST(Rte((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyttearDowns
c
Cs‰tiƒ}|idƒ}|i|ƒ|i|ititiƒx0tD](}|i|dƒ}t	o|GqKqKWt	oHn|i
ƒ}t	ot|ƒnx;tdt
|ƒdƒD] }||}t	o	|GHq¾q¾Wy|d}Wn(tij
o}t	o	|GHq(nX|idƒy|idƒWntij
o	}nX|idƒy|d}Wntj
onX|idƒy|idƒ}Wn0tij
o!}|o|idƒqØnX|iƒ}t	o	|GHn|iƒ}	t	ot|	ƒn|d	=|id
ƒ|idddƒ}t	o	|GHn|iƒ}
t	o	|
GHn|iƒ}|iƒ}x(|o t	o	|GHn|iƒ}q†W|id
ƒ|iƒ}t	o	|GHn|iddti ƒ|id
ƒ|iƒ}t	o	|GHn|i!dƒ}t	o	|GHn|i!dƒ}t	o	|GHn|i"ƒ|i"ƒtiƒ}|i|iƒ|iƒ}d|d<y|d}Wntj
onX|idƒy|idƒWn@ti#j
o1}|o|idƒq7t	o	|GHq7nX|p|idƒn|idƒ}x(|o t	o	|GHn|iƒ}qIW|i"ƒ|i"ƒdS(Nii<iisexpected exceptions(has_key did not raise a proper exceptionidsunexpected exceptionii
itzi2iÿÿÿÿsa replacement recordii?Bs
way out thereics$unexpected DBKeyEmptyError exceptioni(($RtDBtset_get_returns_nonetopenRtDB_RECNOt	DB_CREATEtletterstappendRtstatRtrangetlentDBInvalidArgErrortfailthas_keytDBErrortKeyErrortgettDBNotFoundErrortkeystitemstdeletetget_bothtfdtcursortfirsttnexttsettcurrenttputt
DB_CURRENTt	set_rangetclosetDBKeyEmptyError(
Rtdtget_returns_nonetxtrecnoRtdatatvalR#R$R'tctrec((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyttest01_basic#sÒ

	


	

			
	
			



	
cCsØtiitiƒdƒ}tii|dƒ}tii|ƒpti|ƒnt|dƒ}|iƒt	i
ƒ}|idƒ|idƒ|i|ƒ|i|i
t	it	iƒdiƒ}x|D]}|i|ƒqÏW|iƒ|iƒt|dƒiƒ}|iƒ}to|GH|GH|idƒGHnt	i
ƒ}|i|ƒ|i|i
t	iƒd|d	<d
|d<|iƒ|iƒt|dƒiƒ}|iƒ}to|GH|idƒGHndS(
s
        A Recno file that is given a "backing source file" is essentially a
        simple ASCII file.  Normally each record is delimited by 
 and so is
        just a line in the file, but you can set a different record delimiter
        if needed.
        tdb_homestest_recno.txttwi
s
s,The quick brown fox jumped over the lazy dogtrs
reddish-brownitcomatoseiN(R
tpathtjoinRt
gettempdirtisdirtmkdirRR0RRtset_re_delimt
set_re_sourceRRRtsplitRtsynctreadtstripR(RthomeDirtsourcetfR2R6tdatumttext((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyttest02_WithSourceÇsH










cCs*tiƒ}|idƒ|idƒ|idƒ|i|ititiƒxtD]}|i	|dƒqVW|i	ddƒy|i	ddƒWn(ti
j
o}to	|GHqÏnX|idƒ|i
ƒ}|iƒ}x(|o to	|GHn|iƒ}qêW|iƒ|iƒdS(	Ni(t-i-i#t.tbadisexpected exception(RRt
set_re_lent
set_re_padRRRRRRRRRR(R)R*R0(RR2R4R7R8R9((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyttest03_FixedLengths0



	
(t__name__t
__module__R	RR:RORU(((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyRs
			¤	9cCs
titƒS(N(tunittestt	makeSuiteR(((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyt
test_suite"st__main__tdefaultTestRZ(t__doc__R
tsysR
RRRXttest_allRtbsddb3RtImportErrortbsddbRtTestCaseRRZRVtmain(((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pys<module>s"ÿ
	


Man Man