[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_add.py:1.15 test_editview.py:1.9
Philipp von Weitershausen
philikon@philikon.de
Fri, 6 Jun 2003 17:35:48 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv27561/form/tests
Modified Files:
test_add.py test_editview.py
Log Message:
New interface declaration.
=== Zope3/src/zope/app/browser/form/tests/test_add.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/form/tests/test_add.py:1.14 Thu Jun 5 16:13:07 2003
+++ Zope3/src/zope/app/browser/form/tests/test_add.py Fri Jun 6 17:35:17 2003
@@ -20,7 +20,7 @@
import unittest
from zope.app.browser.form.add import add, AddViewFactory, AddView
-from zope.interface import Interface
+from zope.interface import Interface, implements
from zope.schema import TextLine, accessors
from zope.app.interfaces.container import IAdding
from zope.publisher.interfaces.browser import IBrowserPresentation
@@ -59,7 +59,7 @@
class C:
- __implements__ = (I, )
+ implements(I)
def __init__(self, *args, **kw):
self.args = args
@@ -170,7 +170,7 @@
class Adding:
- __implements__ = IAdding
+ implements(IAdding)
def __init__(self, test):
self.test = test
@@ -202,7 +202,7 @@
class Adding:
- __implements__ = IAdding
+ implements(IAdding)
def __init__(self, test):
self.test = test
@@ -236,7 +236,7 @@
class Adding:
- __implements__ = IAdding
+ implements(IAdding)
def __init__(self, test):
self.test = test
@@ -264,7 +264,7 @@
def test_hooks(self):
class Adding:
- __implements__ = IAdding
+ implements(IAdding)
adding = Adding()
[(descriminator, callable, args, kw)] = self._invoke_add()
=== Zope3/src/zope/app/browser/form/tests/test_editview.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/browser/form/tests/test_editview.py:1.8 Mon Apr 14 04:27:15 2003
+++ Zope3/src/zope/app/browser/form/tests/test_editview.py Fri Jun 6 17:35:17 2003
@@ -17,7 +17,7 @@
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.app.event.tests.placelesssetup import getEvents
-from zope.interface import Interface
+from zope.interface import Interface, implements
from zope.schema import TextLine, accessors
from zope.schema.interfaces import ITextLine
from zope.publisher.browser import TestRequest
@@ -40,7 +40,7 @@
schema = I
class C:
- __implements__ = (I, )
+ implements(I)
foo = u"c foo"
bar = u"c bar"
a = u"c a"
@@ -58,7 +58,7 @@
bar = TextLine(title=u"Bar")
class Foo:
- __implements__ = IFoo
+ implements(IFoo)
foo = 'Foo foo'