[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testZopePublication.py:1.12

Jeremy Hylton jeremy@zope.com
Thu, 18 Jul 2002 18:27:25 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv23731

Modified Files:
	testZopePublication.py 
Log Message:
Use MappingStorage DB.


=== Zope3/lib/python/Zope/App/ZopePublication/tests/testZopePublication.py 1.11 => 1.12 ===
 from Interface.Verify import verifyClass
 from Interface.Implements import instancesOfObjectImplements
 
-import ZODB
-from ZODB.MappingStorage import MappingStorage
+from ZODB.MappingStorage import DB
 
 from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
 from Zope.ComponentArchitecture.GlobalAdapterService import provideAdapter 
@@ -57,7 +56,7 @@
         self.policy = setSecurityPolicy(
             SimpleSecurityPolicies.PermissiveSecurityPolicy()
             )
-        self.db = ZODB.DB(MappingStorage('foo'))
+        self.db = DB("foo")
 
         connection = self.db.open()
         root = connection.root()