[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests -
test_interface.py:1.10 test_module.py:1.13 test_surrogates.py:1.3
Fred L. Drake, Jr.
fred at zope.com
Fri Feb 20 11:58:03 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv22507/src/zope/app/services/tests
Modified Files:
test_interface.py test_module.py test_surrogates.py
Log Message:
update to replace ZODB 4 with ZODB 3
=== Zope3/src/zope/app/services/tests/test_interface.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/services/tests/test_interface.py:1.9 Fri Aug 15 20:44:14 2003
+++ Zope3/src/zope/app/services/tests/test_interface.py Fri Feb 20 11:57:32 2004
@@ -19,8 +19,7 @@
from transaction import get_transaction
-from zodb.db import DB
-from zodb.storage.mapping import MappingStorage
+from ZODB.tests.util import DB
from zodb.code.module import ManagedRegistry
from zope.interface import Interface
@@ -41,7 +40,7 @@
class PersistentInterfaceTest(unittest.TestCase):
def setUp(self):
- self.db = DB(MappingStorage())
+ self.db = DB()
self.root = self.db.open().root()
self.registry = ManagedRegistry()
self.root["registry"] = self.registry
=== Zope3/src/zope/app/services/tests/test_module.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/services/tests/test_module.py:1.12 Mon Jan 12 18:25:44 2004
+++ Zope3/src/zope/app/services/tests/test_module.py Fri Feb 20 11:57:32 2004
@@ -23,8 +23,7 @@
from zope.app.services.tests.placefulsetup import PlacefulSetup
from zope.app.traversing import traverse
from zope.app.services.module import Manager
-from zodb.storage.mapping import MappingStorage
-from zodb.db import DB
+from ZODB.tests.util import DB
from transaction import get_transaction
@@ -65,7 +64,7 @@
self.assertEqual(called, old_called + 1)
def test_module_persistence(self):
- db = DB(MappingStorage())
+ db = DB()
conn = db.open()
root = conn.root()
root['Application'] = self.rootFolder
=== Zope3/src/zope/app/services/tests/test_surrogates.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/tests/test_surrogates.py:1.2 Fri Nov 21 12:09:52 2003
+++ Zope3/src/zope/app/services/tests/test_surrogates.py Fri Feb 20 11:57:32 2004
@@ -521,8 +521,7 @@
def test_persistence():
"""
- >>> storage = MemoryFullStorage('test')
- >>> db = DB(storage)
+ >>> db = DB()
>>> conn1 = db.open()
>>> G = globalSurrogateRegistry
@@ -888,8 +887,7 @@
from zope.app.services.surrogate import LocalSurrogateRegistry
from zope.app.services.surrogate import LocalSurrogateBasedService
import zope.interface
-from zodb.storage.memory import MemoryFullStorage
-from zodb.db import DB
+from ZODB.tests.util import DB
from transaction import get_transaction
from zope.app import zapi
from zope.app.interfaces.services.registration import RegisteredStatus
More information about the Zope3-Checkins
mailing list