[Zodb-checkins] CVS: Zope3/src/zodb/code/tests - test_module.py:1.13.26.3

Jim Fulton jim at zope.com
Fri Jan 23 15:44:34 EST 2004


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

Modified Files:
      Tag: zope3-zodb3-devel-branch
	test_module.py 
Log Message:
Changed to use the DB constructor from ZODB.tests.util.DB


=== Zope3/src/zodb/code/tests/test_module.py 1.13.26.2 => 1.13.26.3 ===
--- Zope3/src/zodb/code/tests/test_module.py:1.13.26.2	Thu Jan 22 15:14:31 2004
+++ Zope3/src/zodb/code/tests/test_module.py	Fri Jan 23 15:44:34 2004
@@ -19,8 +19,7 @@
 from persistent import UPTODATE
 from transaction import get_transaction
 
-import zodb.db
-from zodb.storage.mapping import MappingStorage
+import ZODB.tests.util
 from zodb.code import tests # import this package, to get at __file__ reliably
 from zodb.code.module \
      import ManagedRegistry, PersistentModuleImporter, PersistentPackage
@@ -87,7 +86,7 @@
 class TestBase(unittest.TestCase):
 
     def setUp(self):
-        self.db = zodb.db.DB(MappingStorage())
+        self.db = ZODB.tests.util.DB()
         self.root = self.db.open().root()
         self.registry = ManagedRegistry()
         self.importer = TestPersistentModuleImporter(self.registry)
@@ -358,7 +357,6 @@
     """Test reloading of modules"""
 
     def setUp(self):
-        self.storage = MappingStorage()
         self.open()
         _dir, _file = os.path.split(tests.__file__)
         self._pmtest = os.path.join(_dir, "_pmtest.py")
@@ -368,7 +366,7 @@
 
     def open(self):
         # open a new db and importer from the storage
-        self.db = zodb.db.DB(self.storage)
+        self.db = ZODB.tests.util.DB()
         self.root = self.db.open().root()
         self.registry = self.root.get("registry")
         if self.registry is None:




More information about the Zodb-checkins mailing list