[Zope3-checkins] CVS: Zope3/src/zope/app/cache/tests -
test_caching.py:1.14
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:48 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/cache/tests
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/cache/tests
Modified Files:
test_caching.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/cache/tests/test_caching.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/cache/tests/test_caching.py:1.13 Mon Mar 1 05:57:36 2004
+++ Zope3/src/zope/app/cache/tests/test_caching.py Sat Mar 6 11:50:17 2004
@@ -17,7 +17,7 @@
"""
from unittest import TestCase, TestSuite, main, makeSuite
-from zope.component import getAdapter, getService
+from zope.component import getService
from zope.interface import implements
from zope.component.service import serviceManager as sm
@@ -68,7 +68,7 @@
obj = ObjectStub()
self.assertEquals(getCacheForObj(obj), None)
- getAdapter(obj, ICacheable).setCacheId("my_cache")
+ ICacheable(obj).setCacheId("my_cache")
self.assertEquals(getCacheForObj(obj), my_cache)
More information about the Zope3-Checkins
mailing list