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 :  /usr/lib64/python2.4/bsddb/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/bsddb/test/test_compat.pyo
mς
‚=5Dc@sίdZdkZdkZdkZdkZdkZdklZy#dkl	Z	l
Z
lZlZWn2e
j
o&dkl	Z	l
Z
lZlZnXdeifd„ƒYZd„Zedjoeidd	ƒndS(
sU
Test cases adapted from the test_bsddb.py module in Python's
regression test suite.
N(sverbose(sdbshashopensbtopensrnopentCompatibilityTestCasecBsGtZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCstiƒ|_dS(N(ttempfiletmktemptselftfilename(R((t./usr/lib64/python2.4/bsddb/test/test_compat.pytsetUpscCs1yti|iƒWntij
onXdS(N(tostremoveRRterror(R((RttearDownscCs|itdƒdS(Ntbtopen(Rtdo_bthash_testR(R((Rt
test01_btopenscCs|itdƒdS(Nthashopen(RRR(R((Rttest02_hashopen"sc	Cs˜tidƒ}to	dGHnt|idƒ}x,tt	|ƒƒD]}||||d<qDW|d|d|df}to
d|GHn|idƒ}|djo|id	t|ƒƒnd
|d<|iƒ~t|idƒ}d
|d<d„}|it||ƒd„}|it||ƒ|d=|iƒ}xC|o;to	|GHny|iƒ}WqGtj
oPqGXqGW|iƒdS(Ns-The quick brown fox jumped over the lazy dog.s
Testing: rnopentciiis%s %s %stbrowns$recno database set_location failed: stwenty-fiveitwttwentyicCs|d}dS(Ni(tftrec(RR((RtnoRec?scCs|d}dS(Nsa string(RR(RR((RtbadKeyCs(iR(tstringtsplittdatatverbosetrnopenRRRtrangetlentxtgetTesttset_locationtrvtfailtreprtcloseRtassertRaisestKeyErrorRt	TypeErrortfirstRtnext(	RR"RR RRRRR((Rt
test03_rnopen%sD	




			cCs t|idƒ}|iƒdS(Ntn(RRRRR%(RR((Rt
test04_n_flagUscCsύto
dG|GHn||idƒ}to	dGHn|oto	dGHqanto	dGHnd|d<d|d	<d
|d<d|d<d
|d<d|d<to"d|d	|d|dfGHnto	dGHn|i|iƒdƒ}|d jo|i	dt
|ƒƒnxFy|iƒ}
Wnt
j
o|iƒPnXto	|
GHqqW|tjo;|idƒ}|d!jo|i	dt
|ƒƒqήn7y|idƒ}Wnt
j
onX|i	dƒ|iƒ|iƒy/|oto	dGHq nto	dGHnWntij
onX|i	dƒ~to	dGHn||idƒ}d|d<to	dGHnx.|iƒD] }	||	}to	|GHq“q“Wd„}|it
||ƒd„}|it||ƒ|iƒdS("Ns

Testing: Rscreation...struth test: truestruth test: falsett0tGuidotatvantbtRossumtinventedtdtPythonRs%s %s %sskey ordering...isincorrect first() result: iteswrong key,value returned: s7set_location on non-existant key did not raise KeyErrorsException expectedsmodification...Rt
discovereds	access...cCs|d}dS(Nsno such key(RR(RR((RR¬scCs|d}dS(Ni(RR(RR((RR°s(R/R.(RsPython(RtwhattfactoryRRRR!R)tstartR#R$R*RR'tpreviousRR8tsyncR%tdbtDBErrortkeystkeytwordRR&RR((RR;R:R8RRCRR<RRBR((RRZsŽ
	
	





"	









	
	


		(	t__name__t
__module__RR
R
RR+R-R(((RRs					0	cCs
titƒS(N(tunittestt	makeSuiteR(((Rt
test_suiteΊst__main__tdefaultTestRH(t__doc__tsysRRRFRttest_allRtbsddb3R?RRRtImportErrortbsddbtTestCaseRRHRDtmain(RRRRFR?RLRHRRRRR((Rt?s		
#$¦	


Anon7 - 2021