[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testConvenienceFunctions.py:1.11

Marius Gedminas mgedmin@codeworks.lt
Thu, 12 Dec 2002 06:32:36 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv21266/lib/python/Zope/App/Traversing/tests

Modified Files:
	testConvenienceFunctions.py 
Log Message:
Merge named-component-configuration-branch



=== Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py 1.10 => 1.11 ===
--- Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py:1.10	Thu Dec  5 09:29:22 2002
+++ Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py	Thu Dec 12 06:32:35 2002
@@ -32,6 +32,8 @@
 from Zope.App.Traversing.PhysicalLocationAdapters \
      import WrapperPhysicallyLocatable, RootPhysicallyLocatable
 
+from Zope.Security.Proxy import Proxy
+from Zope.Security.Checker import selectChecker
 
 from Zope.Exceptions import NotFoundError
 
@@ -39,6 +41,10 @@
     def __init__(self, name):
         self.name = name
 
+def _proxied(*args):
+    return Proxy(args, selectChecker(args))
+
+
 class Test(PlacefulSetup, TestCase):
 
     def setUp(self):
@@ -237,6 +243,7 @@
         ( u'/xx/yy/zz',                 (u'',u'xx',u'yy',u'zz'),      
             ('','xx','yy','zz'),
             '/xx/yy/zz',
+            _proxied('','xx','yy','zz'),
         ),
         ( u'xx',                        (u'xx',),
             ('xx',),