[Zope3-checkins] CVS: Zope3/src/zope/app/cache/tests - test_annotationcacheable.py:1.8 test_caching.py:1.8 test_ramcache.py:1.8

Steve Alexander steve@cat-box.net
Fri, 6 Jun 2003 16:45:01 -0400


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

Modified Files:
	test_annotationcacheable.py test_caching.py test_ramcache.py 
Log Message:
yet another batch of updated interface declarations



=== Zope3/src/zope/app/cache/tests/test_annotationcacheable.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/cache/tests/test_annotationcacheable.py:1.7	Tue Mar 11 11:10:56 2003
+++ Zope3/src/zope/app/cache/tests/test_annotationcacheable.py	Fri Jun  6 16:44:30 2003
@@ -27,9 +27,10 @@
 from zope.app.interfaces.cache.cache import ICachingService
 from zope.component.service import serviceManager as sm
 from zope.app.interfaces.services.service import ISimpleService
+from zope.interface import implements
 
 class ObjectStub:
-    __implements__ = IAttributeAnnotatable
+    implements(IAttributeAnnotatable)
 
 
 class CacheStub:
@@ -41,7 +42,7 @@
 
 
 class CachingServiceStub:
-    __implements__ = ICachingService, ISimpleService
+    implements(ICachingService, ISimpleService)
 
     def __init__(self):
         self.caches = {}


=== Zope3/src/zope/app/cache/tests/test_caching.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/cache/tests/test_caching.py:1.7	Tue Mar 11 11:10:56 2003
+++ Zope3/src/zope/app/cache/tests/test_caching.py	Fri Jun  6 16:44:30 2003
@@ -31,16 +31,17 @@
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.component.service import serviceManager as sm
 from zope.app.interfaces.services.service import ISimpleService
+from zope.interface import implements
 
 class ObjectStub:
-    __implements__ = IAttributeAnnotatable
+    implements(IAttributeAnnotatable)
 
 class CacheStub:
     pass
 
 class CachingServiceStub:
 
-    __implements__ = ICachingService, ISimpleService
+    implements(ICachingService, ISimpleService)
 
     def __init__(self):
         self.caches = {}


=== Zope3/src/zope/app/cache/tests/test_ramcache.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/cache/tests/test_ramcache.py:1.7	Thu May  1 15:35:06 2003
+++ Zope3/src/zope/app/cache/tests/test_ramcache.py	Fri Jun  6 16:44:30 2003
@@ -21,11 +21,12 @@
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.app.interfaces.traversing import IPhysicallyLocatable
 from zope.interface.verify import verifyClass, verifyObject
+from zope.interface import implements
 from time import time
 
 
 class Locatable:
-    __implements__ = IPhysicallyLocatable
+    implements(IPhysicallyLocatable)
 
     def __init__(self, path=('a', 'b')):
         self.path = path
@@ -204,7 +205,7 @@
         from zope.app.interfaces.event import IEvent
 
         class DummyEvent:
-            __implements__ = IEvent
+            implements(IEvent)
 
         location = ('aaa',)
         ob = Locatable(path=location)