[Zope3-checkins] CVS: Zope3/src/zodb/storage/tests - test_create.py:1.1.2.5

Barry Warsaw barry@wooz.org
Tue, 24 Dec 2002 12:11:18 -0500


Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv10744

Modified Files:
      Tag: NameGeddon-branch
	test_create.py 
Log Message:
DBHOME from bdbmixin


=== Zope3/src/zodb/storage/tests/test_create.py 1.1.2.4 => 1.1.2.5 ===
--- Zope3/src/zodb/storage/tests/test_create.py:1.1.2.4	Tue Dec 24 11:42:09 2002
+++ Zope3/src/zodb/storage/tests/test_create.py	Tue Dec 24 12:11:18 2002
@@ -25,13 +25,14 @@
 
 from zodb.storage.base import BerkeleyConfig
 from zodb.storage.tests import bdbmixin
+from zodb.storage.tests.base import DBHOME
 from zodb.storage.bdbfull import BDBFullStorage
 
 
 
 class TestMixin:
     def checkDBHomeExists(self):
-        self.failUnless(os.path.isdir(bdbmixin.DBHOME))
+        self.failUnless(os.path.isdir(DBHOME))
 
 
 class MinimalCreateTest(bdbmixin.MinimalTestBase, TestMixin):
@@ -50,7 +51,7 @@
         revid = self._dostore(oid, data=7, version=version)
         # Now close the current storage and re-open it
         self._storage.close()
-        self._storage = self.ConcreteStorage(bdbmixin.DBHOME)
+        self._storage = self.ConcreteStorage(DBHOME)
         self.assertEqual(self._storage.modifiedInVersion(oid), version)
 
     def checkOpenAddVersion(self):
@@ -60,7 +61,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(bdbmixin.DBHOME)
+        self._storage = self.ConcreteStorage(DBHOME)
         eq(self._storage.modifiedInVersion(oid1), version1)
         # Now create a 2nd version string, then close/reopen
         version2 = 'new-version'
@@ -68,7 +69,7 @@
         revid = self._dostore(oid2, data=8, version=version2)
         # Now close the current storage and re-open it
         self._storage.close()
-        self._storage = self.ConcreteStorage(bdbmixin.DBHOME)
+        self._storage = self.ConcreteStorage(DBHOME)
         eq(self._storage.modifiedInVersion(oid1), version1)
         # Now create a 2nd version string, then close/reopen
         eq(self._storage.modifiedInVersion(oid2), version2)