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_compat.pyc

³ò
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|ddjp
td	‚|idƒ}|djo|i	dt
|ƒƒnd|d
<|iƒ~t|idƒ}d|d<d„}|it
||ƒd„}|it||ƒ|d=|iƒ}xC|o;to	|GHny|iƒ}Wqbt
j
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-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(tstringtsplitRRRtrangetlentAssertionErrortset_locationtfailtreprtclosetassertRaisestKeyErrort	TypeErrortfirsttnext(	R	tdataRtxtgetTesttrvRRR((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyt
test03_rnopen%sD	




			cCs t|idƒ}|iƒdS(Ntn(RRR#(R	R((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pyt
test04_n_flagUscCs2to
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|idt|ƒƒnxay|iƒ}Wn;tj
o/||iƒjp
t	d‚|i
ƒPnXto	|GHqq|idƒp
t	d‚|tjo;|idƒ}|d"jo|idt|ƒƒqn7y|idƒ}Wntj
onX|idƒ|i
ƒ|iƒy/|oto	dGHqUnto	dGHnWntij
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: sError, last <> last!sError, missing key!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(R1R0(RsPython(RRR R'R!R"R(R%tlastRtpreviousthas_keyRtsyncR#RtDBErrortkeysR$R&(R	tfactorytwhatRtstartRR:tkeytwordRR((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__tdefaultTestRK(t__doc__tsysRRRIRttest_allRtbsddb3RRRRtImportErrortbsddbtTestCaseRRKRGtmain(((s2/usr/local/lib/python2.5/bsddb/test/test_compat.pys<module>s$&'¦	


Man Man