[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests - testModuleSecurity.py:1.4
Shane Hathaway
shane@cvs.zope.org
Wed, 21 Aug 2002 16:01:38 -0400
Update of /cvs-repository/Zope/lib/python/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv4834
Modified Files:
testModuleSecurity.py
Log Message:
Modified the ModuleSecurityInfo tests to exercise the former ZopeSecurityPolicy
bug. Before the fix, ZopeSecurityPolicy saw the aq_base global and thought
the module object was wrapped, leading to unexpected behavior.
=== Zope/lib/python/AccessControl/tests/testModuleSecurity.py 1.3 => 1.4 ===
--- Zope/lib/python/AccessControl/tests/testModuleSecurity.py:1.3 Wed Aug 14 17:28:08 2002
+++ Zope/lib/python/AccessControl/tests/testModuleSecurity.py Wed Aug 21 16:01:37 2002
@@ -18,7 +18,9 @@
import os, sys, unittest
+import Testing
import ZODB
+from AccessControl import User
from AccessControl import Unauthorized, ModuleSecurityInfo
from AccessControl.ZopeGuards import guarded_import