[Zope3-checkins] CVS: Zope3/src/zodb/storage/tests - test_create.py:1.1.2.4
Barry Warsaw
barry@wooz.org
Tue, 24 Dec 2002 11:42:09 -0500
Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv6802
Modified Files:
Tag: NameGeddon-branch
test_create.py
Log Message:
BerkeleyDB mixin classes come from bdbmixin, not base.
=== Zope3/src/zodb/storage/tests/test_create.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zodb/storage/tests/test_create.py:1.1.2.3 Tue Dec 24 11:20:34 2002
+++ Zope3/src/zodb/storage/tests/test_create.py Tue Dec 24 11:42:09 2002
@@ -24,33 +24,33 @@
import unittest
from zodb.storage.base import BerkeleyConfig
-from zodb.storage.tests import base
+from zodb.storage.tests import bdbmixin
from zodb.storage.bdbfull import BDBFullStorage
class TestMixin:
def checkDBHomeExists(self):
- self.failUnless(os.path.isdir(base.DBHOME))
+ self.failUnless(os.path.isdir(bdbmixin.DBHOME))
-class MinimalCreateTest(base.MinimalTestBase, TestMixin):
+class MinimalCreateTest(bdbmixin.MinimalTestBase, TestMixin):
pass
-class FullCreateTest(base.FullTestBase, TestMixin):
+class FullCreateTest(bdbmixin.FullTestBase, TestMixin):
pass
-class FullOpenExistingTest(base.FullTestBase):
+class FullOpenExistingTest(bdbmixin.FullTestBase):
def checkOpenWithExistingVersions(self):
version = 'test-version'
oid = self._storage.new_oid()
revid = self._dostore(oid, data=7, version=version)
# Now close the current storage and re-open it
self._storage.close()
- self._storage = self.ConcreteStorage(base.DBHOME)
+ self._storage = self.ConcreteStorage(bdbmixin.DBHOME)
self.assertEqual(self._storage.modifiedInVersion(oid), version)
def checkOpenAddVersion(self):
@@ -60,7 +60,7 @@
revid = self._dostore(oid1, data=7, version=version1)
# Now close the current storage and re-open it
self._storage.close()
- self._storage = self.ConcreteStorage(base.DBHOME)
+ self._storage = self.ConcreteStorage(bdbmixin.DBHOME)
eq(self._storage.modifiedInVersion(oid1), version1)
# Now create a 2nd version string, then close/reopen
version2 = 'new-version'
@@ -68,14 +68,14 @@
revid = self._dostore(oid2, data=8, version=version2)
# Now close the current storage and re-open it
self._storage.close()
- self._storage = self.ConcreteStorage(base.DBHOME)
+ self._storage = self.ConcreteStorage(bdbmixin.DBHOME)
eq(self._storage.modifiedInVersion(oid1), version1)
# Now create a 2nd version string, then close/reopen
eq(self._storage.modifiedInVersion(oid2), version2)
-class FullOpenCloseTest(base.FullTestBase):
+class FullOpenCloseTest(bdbmixin.FullTestBase):
def _mk_dbhome(self, dir):
config = BerkeleyConfig
config.interval = 10
@@ -92,7 +92,7 @@
-class OpenRecoveryTest(base.FullTestBase):
+class OpenRecoveryTest(bdbmixin.FullTestBase):
def _mk_dbhome(self, dir):
self._dir = dir