[Zope3-checkins] CVS: Zope3/src/zope/app/presentation/tests -
test_presentation.py:1.13
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Apr 17 10:33:18 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/presentation/tests
In directory cvs.zope.org:/tmp/cvs-serv16544/src/zope/app/presentation/tests
Modified Files:
test_presentation.py
Log Message:
Expanded local registry registrations() to
registrations(localOnly=False). When localOnly is set to True, show only
registrations made in this service.
Renamed zope.component.interfaces.IComponentRegistry to IRegistry and
zope.app.registration.interfaces.IRegistry extends now the
zope.component.interfaces.IRegistry.
=== Zope3/src/zope/app/presentation/tests/test_presentation.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/presentation/tests/test_presentation.py:1.12 Fri Apr 9 07:36:13 2004
+++ Zope3/src/zope/app/presentation/tests/test_presentation.py Sat Apr 17 10:33:13 2004
@@ -314,6 +314,12 @@
]
)
+ def test_localOnly_registrations(self):
+ self.test_queryView()
+ registrations = map(str, self._service.registrations(localOnly=True))
+ registrations.sort()
+ self.assertEqual(registrations, ['Registration(A)'])
+
def test_getRegistrationsForInterface(self):
self.test_queryView()
for reg in self._service.getRegistrationsForInterface(I1):
More information about the Zope3-Checkins
mailing list