[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/CachingService/tests - testCachingService.py:1.3

Albertas Agejevas alga@codeworks.lt
Fri, 6 Dec 2002 06:01:14 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/CachingService/tests
In directory cvs.zope.org:/tmp/cvs-serv16711/lib/python/Zope/App/OFS/Services/CachingService/tests

Modified Files:
	testCachingService.py 
Log Message:
Made CachingService an EventChannel.

=== Zope3/lib/python/Zope/App/OFS/Services/CachingService/tests/testCachingService.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Services/CachingService/tests/testCachingService.py:1.2	Fri Oct  4 14:37:19 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/CachingService/tests/testCachingService.py	Fri Dec  6 06:01:11 2002
@@ -20,10 +20,10 @@
 from Zope.App.tests.PlacelessSetup import PlacelessSetup
 from Zope.ComponentArchitecture.GlobalServiceManager import \
      serviceManager as sm
+from Interface.Verify import verifyClass, verifyObject
 
 from Zope.App.Caching.ICache import ICache
 from Zope.App.Caching.ICachingService import ICachingService
-from Zope.App.OFS.Services.CachingService.CachingService import CachingService
 
 def sort(list):
     list.sort()
@@ -36,6 +36,8 @@
 class TestCachingService(PlacelessSetup, TestCase):
 
     def setUp(self):
+        from Zope.App.OFS.Services.CachingService.CachingService \
+             import CachingService
         PlacelessSetup.setUp(self)
         self.cache1 = CacheStub()
         self.cache2 = CacheStub()
@@ -44,6 +46,12 @@
         self.service.setObject('cache2', self.cache2)
         sm.defineService('Caching', ICachingService)
         sm.provideService('Caching', self.service)
+
+    def test_interface(self):
+        from Zope.App.OFS.Services.CachingService.CachingService \
+             import ILocalCachingService
+        verifyObject(ILocalCachingService, self.service)
+        verifyObject(ICachingService, self.service)
 
     def testGetCache(self):
         self.assertEqual(self.cache1,