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.pyc
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|ddjp
td	‚|i
dƒ}|djo|idt|ƒƒnd|d
<|iƒ~t|idƒ}d|d<d„}|it||ƒd„}|it||ƒ|d=|iƒ}xC|o;to	|GHny|iƒ}Wqbtj
oPqbXqbW|iƒdS(Ns-The quick brown fox jumped over the lazy dog.s
Testing: rnopentciiis%s %s %stquicksdata mismatch!tbrowns$recno database set_location failed: stwenty-fiveitwttwentyicCs|d}dS(Ni(tftrec(RR((RtnoRec?scCs|d}dS(Nsa string(RR(RR((RtbadKeyCs(iR(tstringtsplittdatatverbosetrnopenRRRtrangetlentxtgetTesttAssertionErrortset_locationtrvtfailtreprtcloseRtassertRaisestKeyErrorRt	TypeErrortfirstRtnext(	RR$RR!RRRR R((Rt
test03_rnopen%sD	




			cCs t|idƒ}|iƒdS(Ntn(RRRRR'(RR((Rt
test04_n_flagUscCs4to
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
|ƒƒnxcy|iƒ}
Wn;t
j
o/|
|iƒjp
td‚|iƒPnXto	|
GHqqW|idƒp
td‚|tjo;|idƒ}|d#jo|i	dt
|ƒƒqn7y|idƒ}Wnt
j
onX|i	dƒ|iƒ|iƒy/|oto	dGHqWnto	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: isError, last <> last!sError, missing key!teswrong 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(R1R0(RsPython(RtwhattfactoryRRRR#R+tstartR%R&R,RR)tlastR"tpreviousthas_keyRR:tsyncR'tdbtDBErrortkeystkeytwordRR(RR*(RR=R<R:RRGRR>RRFR((RRZsŽ
	
	





"	









	
	


		(	t__name__t
__module__RR
R
RR-R/R(((RRs					0	cCs
titƒS(N(tunittestt	makeSuiteR(((Rt
test_suiteΊst__main__tdefaultTestRL(t__doc__tsysRRRJRttest_allRtbsddb3RCRRRtImportErrortbsddbtTestCaseRRLRHtmain(RRRRJRCRPRLRRRRR((Rt?s		
#$¦	


Anon7 - 2021