��Qc@s�dZddlZddlZddlZddlmZmZmZmZdej fd��YZ
d�Zedkr�ej
dd �ndS(
sTestCase for reseting File ID.
i�N(tdbttest_supporttget_new_environment_pathtget_new_database_pathtFileidResetTestCasecBs#eZd�Zd�Zd�ZRS(cCs(t�|_t�|_t�|_dS(N(Rt db_path_1t db_path_2Rtdb_env_path(tself((s,/sys/lib/python2.7/bsddb/test/test_fileid.pytsetUpscCs�tj�|_|jj|jdtjdtjtjB�|jjdd�|jj �t
j|j|j�tj�|_
|j
j|jdtj�|j
jdd�|j
j �tj�|_|jj|jtjtjB�|jj|j�tj|j�|_|jj|jdtjdtj�|j|jjd�d�tj|j�|_
|j
j|jdtjdtj�|j|j
jd�d�|jj �|j
j �|jj �dS(Ntdbtypetflagstspamteggs(RtDBtdb1topenRtDB_HASHt DB_CREATEtDB_EXCLtputtclosetshutiltcopyRtdb2tDBEnvtdb_envRt
DB_INIT_MPOOLtfileid_resett DB_RDONLYtassertEqualtget(R((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyttest_fileid_resets*,
%%
cCs4tj|j�tj|j�tj|j�dS(N(RtunlinkRRtrmtreeR(R((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyttearDown1s(t__name__t
__module__R R R#(((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyR
s !cCs;tj�}tj�dkr7|jtjt��n|S(Ni(ii(tunittestt TestSuiteRtversiontaddTestt makeSuiteR(tsuite((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyt
test_suite6st__main__tdefaultTestR,(t__doc__tosRR&ttest_allRRRRtTestCaseRR,R$tmain(((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyt<module>s",
|