[Checkins] SVN: zc.catalog/trunk/src/zc/catalog/extentcatalog.txt
Get rid of unit test deprecations
Gary Poster
gary at zope.com
Thu Apr 27 23:24:37 EDT 2006
Log message for revision 67681:
Get rid of unit test deprecations
Changed:
U zc.catalog/trunk/src/zc/catalog/extentcatalog.txt
-=-
Modified: zc.catalog/trunk/src/zc/catalog/extentcatalog.txt
===================================================================
--- zc.catalog/trunk/src/zc/catalog/extentcatalog.txt 2006-04-28 03:24:25 UTC (rev 67680)
+++ zc.catalog/trunk/src/zc/catalog/extentcatalog.txt 2006-04-28 03:24:37 UTC (rev 67681)
@@ -6,10 +6,9 @@
some items to index, and a filter that determines what the extent accepts.
>>> from zc.catalog import interfaces, extentcatalog
- >>> from zope import interface
+ >>> from zope import interface, component
>>> from zope.interface import verify
>>> import zope.app.intid.interfaces
- >>> from zope.app.tests import ztapi
>>> class DummyIntId(object):
... interface.implements(zope.app.intid.interfaces.IIntIds)
... MARKER = '__dummy_int_id__'
@@ -30,8 +29,8 @@
... return iter(self.data)
...
>>> intid = DummyIntId()
- >>> ztapi.provideUtility(
- ... zope.app.intid.interfaces.IIntIds, intid)
+ >>> component.provideUtility(
+ ... intid, zope.app.intid.interfaces.IIntIds)
>>> import sets
>>> from zope.app.container.interfaces import IContained
>>> class DummyIndex(object):
@@ -206,5 +205,5 @@
True
>>> list(sorted(catalog.extent.difference(alt_set))) == matches
True
-
+ >>> from zope.app.testing import ztapi
>>> ztapi.unprovideUtility(zope.app.intid.interfaces.IIntIds)
More information about the Checkins
mailing list