config root man

Current Path : /compat/linux/proc/self/root/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 : //compat/linux/proc/self/root/usr/local/lib/python2.5/bsddb/test/test_compat.pyo

³ò
h”Rc
@s÷dZddkZddkZddkZddkZddkZddklZy&ddkl	Z	l
Z
lZlZWn5e
j
o)ddkl	Z	l
Z
lZlZnXdeifd„ƒYZd„Zedjoeid	d
ƒndS(sU
Test cases adapted from the test_bsddb.py module in Python's
regression test suite.
iÿÿÿÿN(tverbose(tdbthashopentbtopentrnopentCompatibilityTestCasecBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCstiƒ|_dS(N(ttempfiletmktemptfilename(tself((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pytsetUpscCs1yti|iƒWntij
onXdS(N(tostremoveRterror(R	((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyttearDownscCs|itdƒdS(NR(tdo_bthash_testR(R	((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyt
test01_btopenscCs|itdƒdS(NR(RR(R	((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyttest02_hashopen"sc	Cs˜tidƒ}to	dGHnt|idƒ}x,tt|ƒƒD]}||||d<qDW|d|d|df}to
d|GHn|idƒ}|djo|id	t	|ƒƒnd
|d<|i
ƒ~t|idƒ}d
|d<d„}|it||ƒd„}|it
||ƒ|d=|iƒ}xC|o;to	|GHny|iƒ}WqGtj
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-fiveitwttwentyicSs|d}dS(Ni((tftrec((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pytnoRec?scSs|d}dS(Nsa string((RR((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pytbadKeyCs(iR(tstringtsplitRRRtrangetlentset_locationtfailtreprtclosetassertRaisestKeyErrort	TypeErrortfirsttnext(	R	tdataRtxtgetTesttrvRRR((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyt
test03_rnopen%sB	




			cCs t|idƒ}|iƒdS(Ntn(RRR!(R	R((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyt
test04_n_flagUscCsû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ƒ}|djo|idt|ƒƒnxDy|iƒ}Wntj
o|iƒPnXto	|GHqq|t	jo;|idƒ}|d jo|idt|ƒƒqÜn7y|idƒ}Wntj
onX|idƒ|i
ƒ|iƒy/|oto	dGHqnto	dGHnWnti
j
onX|idƒ~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: teswrong key,value returned: s7set_location on non-existant key did not raise KeyErrorsException expectedsmodification...Rt
discovereds	access...cSs|d}dS(Nsno such key((RR((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyR¬scSs|d}dS(Ni((RR((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyR°s(R/R.(RsPython(RRRR%RR R&R#tpreviousRtsyncR!RtDBErrortkeysR"R$(R	tfactorytwhatRtstartRR8tkeytwordRR((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyRZsˆ
	
	





"	









	
	


		(	t__name__t
__module__R
RRRR+R-R(((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyRs					0	cCs
titƒS(N(tunittestt	makeSuiteR(((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyt
test_suiteºst__main__tdefaultTestRG(t__doc__tsysRRRERttest_allRtbsddb3RRRRtImportErrortbsddbtTestCaseRRGRCtmain(((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pys<module>s$&'¦	


Man Man