[Zope3-checkins] CVS: Zope3/src/zope/app/rdb/tests - test_directives.py:1.5

Jim Fulton jim at zope.com
Sun Apr 11 14:16:56 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/rdb/tests
In directory cvs.zope.org:/tmp/cvs-serv19096/src/zope/app/rdb/tests

Modified Files:
	test_directives.py 
Log Message:
getUtilitiesFor now returns an iteratable.


=== Zope3/src/zope/app/rdb/tests/test_directives.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/rdb/tests/test_directives.py:1.4	Tue Mar  2 08:48:29 2004
+++ Zope3/src/zope/app/rdb/tests/test_directives.py	Sun Apr 11 14:16:25 2004
@@ -29,7 +29,7 @@
 
     def test_provideConnection(self):
 
-        conns = zapi.getUtilitiesFor(None, IZopeDatabaseAdapter)
+        conns = list(zapi.getUtilitiesFor(None, IZopeDatabaseAdapter))
         self.assertEqual(conns, [])
         connectionstub = queryUtility(None,IZopeDatabaseAdapter, None, 'stub')
         self.assertEqual(connectionstub, None)




More information about the Zope3-Checkins mailing list