[Zope3-checkins] CVS: Zope3/src/zope/app/browser/tests - test_absoluteurl.py:1.13 test_menu.py:1.9 test_objectname.py:1.10 test_undo.py:1.4

Philipp von Weitershausen philikon@philikon.de
Fri, 6 Jun 2003 17:35:51 -0400


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

Modified Files:
	test_absoluteurl.py test_menu.py test_objectname.py 
	test_undo.py 
Log Message:
New interface declaration.


=== Zope3/src/zope/app/browser/tests/test_absoluteurl.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/browser/tests/test_absoluteurl.py:1.12	Sun Jun  1 11:59:28 2003
+++ Zope3/src/zope/app/browser/tests/test_absoluteurl.py	Fri Jun  6 17:35:20 2003
@@ -18,7 +18,7 @@
 """
 
 from unittest import TestCase, main, makeSuite
-from zope.interface import Interface
+from zope.interface import Interface, implements
 
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.component import getService, getView
@@ -36,7 +36,7 @@
 class IRoot(Interface): pass
 
 class Root:
-    __implements__ = IRoot
+    implements(IRoot)
 
 class TrivialContent(object):
     """Trivial content object, used because instances of object are rocks."""


=== Zope3/src/zope/app/browser/tests/test_menu.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/browser/tests/test_menu.py:1.8	Tue Mar 11 11:10:54 2003
+++ Zope3/src/zope/app/browser/tests/test_menu.py	Fri Jun  6 17:35:20 2003
@@ -17,7 +17,7 @@
 """
 
 import unittest
-from zope.interface import Interface
+from zope.interface import Interface, implements
 
 from zope.component import getService, getServiceManager
 from zope.app.services.servicenames import Views
@@ -39,7 +39,7 @@
     return {'action': action, 'title': title, 'description': ''}
 
 class Service:
-    __implements__ = IBrowserMenuService, ISimpleService
+    implements(IBrowserMenuService, ISimpleService)
 
     def getMenu(self, name, ob, req):
         return [d('l1', 'a1'),
@@ -48,7 +48,7 @@
 
 class I(Interface): pass
 class C:
-    __implements__ = I
+    implements(I)
 
     def __call__(self):
         pass
@@ -61,7 +61,7 @@
 ob.abad.bad = 1
 
 class V:
-    __implements__ = IBrowserView
+    implements(IBrowserView)
 
     def __init__(self, context, request):
         self.context = context


=== Zope3/src/zope/app/browser/tests/test_objectname.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/browser/tests/test_objectname.py:1.9	Sun Jun  1 11:59:28 2003
+++ Zope3/src/zope/app/browser/tests/test_objectname.py	Fri Jun  6 17:35:20 2003
@@ -17,7 +17,7 @@
 $Id$
 """
 from unittest import TestCase, main, makeSuite
-from zope.interface import Interface
+from zope.interface import Interface, implements
 
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.component import getService, getView
@@ -38,7 +38,7 @@
 class IRoot(Interface): pass
 
 class Root:
-    __implements__ = IRoot
+    implements(IRoot)
 
 class TrivialContent(object):
     """Trivial content object, used because instances of object are rocks."""


=== Zope3/src/zope/app/browser/tests/test_undo.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/tests/test_undo.py:1.3	Wed Apr 30 19:37:58 2003
+++ Zope3/src/zope/app/browser/tests/test_undo.py	Fri Jun  6 17:35:20 2003
@@ -19,13 +19,14 @@
 
 from unittest import TestCase, main, makeSuite
 
+from zope.interface import implements
 from zope.app.interfaces.undo import IUndoManager
 from zope.app.browser.undo import Undo
 from zope.app.services.tests.placefulsetup\
            import PlacefulSetup
 
 class TestIUndoManager:
-    __implements__ = IUndoManager
+    implements(IUndoManager)
 
     def __init__(self):
         dict1 = {'id': '1', 'user_name': 'monkey', 'description': 'thing1',