[Zope3-checkins] CVS: Zope3/src/zope/component/tests -
test_providefactory.py:1.7
Sidnei da Silva
sidnei at x3ng.com.br
Mon Aug 25 11:14:10 EDT 2003
Update of /cvs-repository/Zope3/src/zope/component/tests
In directory cvs.zope.org:/tmp/cvs-serv6817/src/zope/component/tests
Modified Files:
test_providefactory.py
Log Message:
Make getFactoriesFor(iface) return a list of tuples (name, factory) so it is actually useful for something
=== Zope3/src/zope/component/tests/test_providefactory.py 1.6 => 1.7 ===
--- Zope3/src/zope/component/tests/test_providefactory.py:1.6 Tue Aug 5 10:25:16 2003
+++ Zope3/src/zope/component/tests/test_providefactory.py Mon Aug 25 10:14:09 2003
@@ -38,7 +38,7 @@
factories=getService(None, Factories)
factories.provideFactory("Some.Object", f)
fs = factories.getFactoriesFor(IX)
- self.assertEqual(fs, [f])
+ self.assertEqual(fs, [('Some.Object', f)])
def test_getFactoriesForUnregistered(self):
from zope.component import getService, createObject
More information about the Zope3-Checkins
mailing list