[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_directives.py:1.7
Jim Fulton
jim@zope.com
Wed, 28 May 2003 13:19:52 -0400
Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv25942/src/zope/app/component/tests
Modified Files:
test_directives.py
Log Message:
renamed zope.proxy.getObject to zope.proxy.getProxiedObject
=== Zope3/src/zope/app/component/tests/test_directives.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.6 Wed May 28 11:46:05 2003
+++ Zope3/src/zope/app/component/tests/test_directives.py Wed May 28 13:19:21 2003
@@ -19,7 +19,7 @@
from zope.configuration.exceptions import ConfigurationError
from zope.app.security.exceptions import UndefinedPermissionError
-from zope.proxy import getObject as proxiedObject
+from zope.proxy import getProxiedObject
from zope.security.proxy import getTestProxyItems
import zope.app.component
@@ -123,7 +123,7 @@
adapter = getAdapter(Content(), IApp)
items = [item[0] for item in getTestProxyItems(adapter)]
self.assertEqual(items, ['a', 'f'])
- self.assertEqual(proxiedObject(adapter).__class__, Comp)
+ self.assertEqual(getProxiedObject(adapter).__class__, Comp)
def testAdapterUndefinedPermission(self):
config = StringIO(template % (
@@ -216,7 +216,7 @@
utility = getUtility(None, IApp)
items = [item[0] for item in getTestProxyItems(utility)]
self.assertEqual(items, ['a', 'f'])
- self.assertEqual(proxiedObject(utility), comp)
+ self.assertEqual(getProxiedObject(utility), comp)
def testUtilityUndefinedPermission(self):
config = StringIO(template % (