mς &U²Ic@sίdZdkZdkZdkZdkZdkZdklZy#dkl Z l Z l Z l Z Wn2e j o&dkl Z l Z l Z l 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((t3/data/zmath/lib/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 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(Ns no such key(RR(RR((RR¬scCs|d}dS(Ni(RR(RR((RR°s(R1R0(RsPython(RtwhattfactoryRRRR#R+tstartR%R&R,RR)tlastR"tpreviousthas_keyR R: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__t defaultTestRL(t__doc__tsysRRRJRttest_allRtbsddb3RCRR Rt ImportErrortbsddbtTestCaseRRLRHtmain( RRRRJRCRPRLR RRRR((Rt?s   #$¦