[Zodb-checkins] CVS: ZODB3/bsddb3Storage/bsddb3Storage/tests - test_storage_api.py:1.22.2.3
Barry Warsaw
barry@wooz.org
Thu, 24 Oct 2002 09:56:25 -0400
Update of /cvs-repository/ZODB3/bsddb3Storage/bsddb3Storage/tests
In directory cvs.zope.org:/tmp/cvs-serv17936
Modified Files:
Tag: bdb-nolocks
test_storage_api.py
Log Message:
FullRecoveryTest: New class, added to test_suite(), which just runs
the RecoveryStorage tests.
=== ZODB3/bsddb3Storage/bsddb3Storage/tests/test_storage_api.py 1.22.2.2 => 1.22.2.3 ===
--- ZODB3/bsddb3Storage/bsddb3Storage/tests/test_storage_api.py:1.22.2.2 Tue Oct 22 19:07:47 2002
+++ ZODB3/bsddb3Storage/bsddb3Storage/tests/test_storage_api.py Thu Oct 24 09:56:24 2002
@@ -31,6 +31,7 @@
from ZODB.tests.PackableStorage import PackableStorage
from ZODB.tests.HistoryStorage import HistoryStorage
from ZODB.tests.IteratorStorage import IteratorStorage
+from ZODB.tests.RecoveryStorage import RecoveryStorage
from ZODB.tests import ConflictResolution
@@ -67,6 +68,21 @@
def checkUndoCommitVersion(self): pass
+
+DST_DBHOME = 'test-dst'
+
+class FullRecoveryTest(BerkeleyTestBase.FullTestBase,
+ RecoveryStorage):
+ def setUp(self):
+ BerkeleyTestBase.FullTestBase.setUp(self)
+ self._zap_dbhome(DST_DBHOME)
+ self._dst = self._mk_dbhome(DST_DBHOME)
+
+ def tearDown(self):
+ BerkeleyTestBase.FullTestBase.tearDown(self)
+ self._zap_dbhome(DST_DBHOME)
+
+
class AutopackTest(BerkeleyTestBase.AutopackTestBase, BasicStorage):
def checkVersionedStoreAndLoad(self):
# This storage doesn't support versions, so we should get an exception
@@ -79,8 +95,9 @@
def test_suite():
suite = unittest.TestSuite()
- #suite.addTest(unittest.makeSuite(MinimalTest, 'check'))
suite.addTest(unittest.makeSuite(FullTest, 'check'))
+ suite.addTest(unittest.makeSuite(FullRecoveryTest, 'check'))
+ #suite.addTest(unittest.makeSuite(MinimalTest, 'check'))
#suite.addTest(unittest.makeSuite(AutopackTest, 'check'))
return suite