[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore/tests - test_creatorannotator.py:1.4 test_zdcannotatableadapter.py:1.3
Steve Alexander
steve@cat-box.net
Fri, 6 Jun 2003 17:22:17 -0400
Update of /cvs-repository/Zope3/src/zope/app/dublincore/tests
In directory cvs.zope.org:/tmp/cvs-serv24825/src/zope/app/dublincore/tests
Modified Files:
test_creatorannotator.py test_zdcannotatableadapter.py
Log Message:
new interface declarations
=== Zope3/src/zope/app/dublincore/tests/test_creatorannotator.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/dublincore/tests/test_creatorannotator.py:1.3 Mon Jun 2 12:55:47 2003
+++ Zope3/src/zope/app/dublincore/tests/test_creatorannotator.py Fri Jun 6 17:21:46 2003
@@ -20,7 +20,7 @@
from zope.app.services.tests.placefulsetup import PlacefulSetup
from zope.testing.cleanup import CleanUp
-from zope.interface import Interface
+from zope.interface import Interface, implements
from zope.component.adapter import provideAdapter
from zope.app.dublincore.creatorannotator import CreatorAnnotator
@@ -33,12 +33,12 @@
pass
class DummyEvent:
- __implements__ = IEvent
+ implements(IEvent)
class DummyDCAdapter(object):
__used_for__ = IDummyContent
- __implements__ = IZopeDublinCore
+ implements(IZopeDublinCore)
def _getcreator(self):
return self.context.creators
@@ -54,12 +54,12 @@
class DummyDublinCore:
- __implements__ = IDummyContent
+ implements(IDummyContent)
creators = ()
class DummyPrincipal:
- __implements__ = IPrincipal
+ implements(IPrincipal)
def getId(self):
return self._id
=== Zope3/src/zope/app/dublincore/tests/test_zdcannotatableadapter.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/dublincore/tests/test_zdcannotatableadapter.py:1.2 Wed Dec 25 09:12:50 2002
+++ Zope3/src/zope/app/dublincore/tests/test_zdcannotatableadapter.py Fri Jun 6 17:21:46 2003
@@ -21,10 +21,11 @@
from unittest import TestCase, TestSuite, main, makeSuite
from zope.app.interfaces.annotation import IAnnotations
from zope.app.tests.placelesssetup import PlacelessSetup
+from zope.interface import implements
class TestAnnotations(dict):
- __implements__ = IAnnotations
+ implements(IAnnotations)
class Test(PlacelessSetup, TestCase):