[Zodb-checkins] CVS: Zope3/lib/python/ZODB/tests - testStorageConfig.py:1.2

Guido van Rossum guido@python.org
Sat, 23 Nov 2002 02:59:56 -0500


Update of /cvs-repository/Zope3/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv12377

Modified Files:
	testStorageConfig.py 
Log Message:
Make testZEOStorage() work.


=== Zope3/lib/python/ZODB/tests/testStorageConfig.py 1.1 => 1.2 ===
--- Zope3/lib/python/ZODB/tests/testStorageConfig.py:1.1	Sat Nov 23 01:57:02 2002
+++ Zope3/lib/python/ZODB/tests/testStorageConfig.py	Sat Nov 23 02:59:55 2002
@@ -56,16 +56,16 @@
         sample = """
         <Storage>
         type       ClientStorage
-        addr       %s
+        addr       zeo://www.python.org:9001
         wait       no
         </Storage>
-        """ % self.tmpfn
+        """
         io = StringIO(sample)
         rootconf = ZConfig.loadfile(io)
         storageconf = rootconf.getSection("Storage")
         cls, args = StorageConfig.getStorageInfo(storageconf)
         self.assertEqual(cls, ClientStorage)
-        self.assertEqual(args, {"addr": [self.tmpfn], "wait": 0})
+        self.assertEqual(args, {"addr": [("www.python.org", 9001)], "wait": 0})
         self.storage = StorageConfig.createStorage(storageconf)
         self.assert_(isinstance(self.storage, ClientStorage))