��Qc@s�ddlZddlZddlZddlmZmZmZmZmZdej fd��YZ
d�Zedkr�ej
dd�ndS( i�N(tdbtdbobjttest_supporttget_new_environment_pathtget_new_database_patht
dbobjTestCasecBsAeZdZdZd�Zd�Zd�Zd�Zd�ZRS(s2Verify that dbobj.DB and dbobj.DBEnv work properlys
test-dbobj.dbcCst�|_dS(N(RthomeDir(tself((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pytsetUpscCsDt|d�r|`nt|d�r0|`ntj|j�dS(NRtenv(thasattrRR RtrmtreeR(R((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyttearDowns
cCs�dtjfd��Y}dtjfd��Y}|�|_|jj|jtjtjB�||j�|_|jj|j tj
tj�|jjdd�|j|jj
d�dd�|j|jj
d�dd �|jj�|jj�dS(
Nt TestDBEnvcBseZRS((t__name__t
__module__(((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyR
stTestDBcBseZd�ZRS(c_s%|j�}tjj||||�S(N(tupperRtDBtput(Rtkeytargstkwargs((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyRs(RRR(((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyRstspamteggss+overridden dbobj.DB.put() method failed [1]tSPAMs+overridden dbobj.DB.put() method failed [2](RtDBEnvRR topenRRt DB_CREATEt
DB_INIT_MPOOLtdb_nametDB_HASHRtassertEqualtgettNonetclose(RR
R((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyttest01_boths
cCs�tj�|_|jj|jtjtjB�tj|j�|_|jj|j dtj
tj�d|jd<|jt|j�d�|j|jdd�|jd=|j|jj
d�dd�|jj�|jj�dS(Nt02RRisdbobj __del__ failed(RRR RRRRRRRRR tlenR!R"R#(R((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyttest02_dbobj_dict_interface+s #
cCs |jtjtj�j�dS(N(tassertRaisesRtDBInvalidArgErrorRttype(R((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyttest03_dbobj_type_before_open<s( RRt__doc__RRRR$R'R+(((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyR
s cCs
tjt�S(N(tunittestt makeSuiteR(((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyt
test_suiteBst__main__tdefaultTestR/(toststringR-ttest_allRRRRRtTestCaseRR/Rtmain(((s+/sys/lib/python2.7/bsddb/test/test_dbobj.pyt<module>s(8
|