[Zope3-checkins] CVS: Zope3/src/zope/app/form/tests - test_utility.py:1.14

Steve Alexander steve@cat-box.net
Wed, 4 Jun 2003 07:14:19 -0400


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

Modified Files:
	test_utility.py 
Log Message:
new style implements()


=== Zope3/src/zope/app/form/tests/test_utility.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/form/tests/test_utility.py:1.13	Thu May  1 15:35:17 2003
+++ Zope3/src/zope/app/form/tests/test_utility.py	Wed Jun  4 07:13:48 2003
@@ -23,7 +23,7 @@
 from zope.publisher.browser import BrowserView
 from zope.publisher.browser import TestRequest
 from zope.publisher.interfaces.browser import IBrowserPresentation
-from zope.interface import Interface, directlyProvides
+from zope.interface import Interface, directlyProvides, implements
 from zope.schema import Text, accessors
 from zope.app.browser.form.widget import TextWidget
 from zope.component.view import provideView, setDefaultViewName
@@ -36,7 +36,6 @@
 from zope.component.interfaces import IViewFactory
 
 
-
 class I(Interface):
     title = Text(title=u"Title", required = False)
     description = Text(title=u"Description",
@@ -53,10 +52,10 @@
     description = Text(title=u"Description", required = False)
 
 class C:
-    __implements__ = I
+    implements(I)
 
 class C2:
-    __implements__ = I2
+    implements(I2)
 
 
 class Ia(Interface):
@@ -67,7 +66,7 @@
                                                )
 
 class Ca:
-    __implements__ = Ia
+    implements(Ia)
 
     def getTitle(self): return self._t
     def setTitle(self, v): self._t = v