[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testTraverser.py:1.1.2.5
Guido van Rossum
guido@python.org
Thu, 13 Dec 2001 13:08:21 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv12427/Zope/App/Traversing/tests
Modified Files:
Tag: Zope-3x-branch
testTraverser.py
Log Message:
Finish Feature -> Adapter conversion
=== Zope3/lib/python/Zope/App/Traversing/tests/testTraverser.py 1.1.2.4 => 1.1.2.5 ===
from Zope.ContextWrapper import wrapper, Wrapper
from Zope.Exceptions import NotFoundError, Unauthorized
-from Zope.ComponentArchitecture import provideFeature, _clear
+from Zope.ComponentArchitecture import provideAdapter, _clear
from Zope.App.Security.SecurityManagement import setSecurityPolicy, \
noSecurityManager
from Zope.App.Security.SimpleSecurityPolicies import NameBasedSecurityPolicy
@@ -55,7 +55,7 @@
class UnrestrictedTraverseTests(unittest.TestCase):
def setUp(self):
- provideFeature(None, ITraversable, DefaultTraversable)
+ provideAdapter(None, ITraversable, DefaultTraversable)
self.root = root = C('root')
self.folder = folder = C('folder')
@@ -114,7 +114,7 @@
self._oldPolicy = setSecurityPolicy(
NameBasedSecurityPolicy(self.denyNames))
- provideFeature(None, ITraversable, DefaultTraversable)
+ provideAdapter(None, ITraversable, DefaultTraversable)
self.root = root = C('root')
self.folder = folder = C('folder')