[Zope3-checkins] CVS: Zope3/src/zope/app/schema/tests - test_fieldfactory.py:1.6

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


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

Modified Files:
	test_fieldfactory.py 
Log Message:
getFactoriesFor now returns an iteratable


=== Zope3/src/zope/app/schema/tests/test_fieldfactory.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/schema/tests/test_fieldfactory.py:1.5	Tue Mar  9 07:39:10 2004
+++ Zope3/src/zope/app/schema/tests/test_fieldfactory.py	Sun Apr 11 14:16:27 2004
@@ -45,15 +45,15 @@
         self.assertEquals(factory.description, "Text Field")
 
     def testGetFactoriesForIField(self):
-        factories = zapi.getFactoriesFor(None, IField)
+        factories = list(zapi.getFactoriesFor(None, IField))
         self.assertEqual(len(factories), 3)
 
     def testGetFactoriesForIText(self):
-        factories = zapi.getFactoriesFor(None, IText)
+        factories = list(zapi.getFactoriesFor(None, IText))
         self.assertEqual(len(factories), 2)
 
     def testGetFactoriesUnregistered(self):
-        factories = zapi.getFactoriesFor(None, IFoo)
+        factories = list(zapi.getFactoriesFor(None, IFoo))
         self.assertEqual(len(factories), 0)
 
 




More information about the Zope3-Checkins mailing list