[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests -
test_contentdirective.py:1.10
Jim Fulton
jim at zope.com
Sun Sep 21 13:31:22 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv13058/src/zope/app/component/tests
Modified Files:
test_contentdirective.py
Log Message:
Changed the way factory permissions are handled. Now just create a
checker to be used later when the factory is proxied. Don't proxy the
factory right away.
=== Zope3/src/zope/app/component/tests/test_contentdirective.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/component/tests/test_contentdirective.py:1.9 Sun Aug 17 02:06:17 2003
+++ Zope3/src/zope/app/component/tests/test_contentdirective.py Sun Sep 21 13:31:21 2003
@@ -211,7 +211,7 @@
""")
xmlconfig(f)
factory = getService(None, Factories).getFactory('Example')
- self.failUnless(type(factory) is Proxy)
+ self.assert_(hasattr(factory, '__Security_checker__'))
def test_suite():
More information about the Zope3-Checkins
mailing list