ķ nŽ¸Qc@s‹ddlZddlZddlZddlmZmZmZmZdejfd„ƒYZ d„Z e dkr‡ej ddƒndS( i˙˙˙˙N(tdbt test_supporttget_new_environment_pathtget_new_database_pathtpget_bugTestCasecBs/eZdZdZd„Zd„Zd„ZRS(s&Verify that cursor.pget works properlystest-cursor_pget.dbcCstƒ|_tjƒ|_|jj|jtjtjBƒtj|jƒ|_ |j j|j dtj tjƒtj|jƒ|_ |j j tjƒ|j j|j dtj tjƒ|j j|j d„ƒ|j jddƒ|j jddƒ|j jddƒdS( Ntprimaryt secondarycSs|S(N((tkeytdata((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pytstsaladteggstspamthamtomelet(RthomeDirRtDBEnvtenvtopent DB_CREATEt DB_INIT_MPOOLtDBt primary_dbtdb_nametDB_BTREEt secondary_dbt set_flagstDB_DUPt associatetput(tself((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pytsetUp s  ""cCsM|jjƒ|jjƒ|jjƒ|`|`|`tj|jƒdS(N(RtcloseRRRtrmtreeR(R((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyttearDowns   cCsģ|jjƒ}|jd|jdddtjƒƒ|jd |jtjƒƒ|jd|jtjƒƒ|jd |jdddtjƒƒ|jd|jtjƒƒ|jƒdS( NR R RtflagsRR R (seggsssaladseggs(seggssomeletseggs(shamsspamsham( Rtcursort assertEqualtpgetRtDB_SETt DB_NEXT_DUPtNoneR (RR$((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyt test_pget%s%%(t__name__t __module__t__doc__RRR"R*(((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyR s   cCs tjtƒS(N(tunittestt makeSuiteR(((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyt test_suite2st__main__t defaultTestR0( R.tostglobttest_allRRRRtTestCaseRR0R+tmain(((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyts ")