[Zope3-checkins] CVS: Zope3/lib/python/Zope/Security/tests - test_Proxy.py:1.4
Fred L. Drake, Jr.
fdrake@acm.org
Tue, 13 Aug 2002 14:38:08 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Security/tests
In directory cvs.zope.org:/tmp/cvs-serv25585/tests
Modified Files:
test_Proxy.py
Log Message:
Make the security proxy a derived type of the proxy base class.
=== Zope3/lib/python/Zope/Security/tests/test_Proxy.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/Security/tests/test_Proxy.py:1.3 Fri Jun 14 11:56:39 2002
+++ Zope3/lib/python/Zope/Security/tests/test_Proxy.py Tue Aug 13 14:38:07 2002
@@ -1,6 +1,7 @@
import unittest
from Zope.Exceptions import Forbidden
from Zope.Security.Proxy import getObject, getChecker, ProxyFactory
+from Zope.Proxy.proxy import proxy
class Checker:
@@ -67,6 +68,9 @@
self.c.ok = 0
self.assertRaises(RuntimeError, *args)
self.c.ok = 1
+
+ def testDerivation(self):
+ self.assert_(isinstance(self.p, proxy))
def testStr(self):
self.assertEqual(str(self.p), str(self.x))