Commit a191d7b8 authored by Shane Hathaway's avatar Shane Hathaway

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.
parent d37417c9
# test module, public
from Acquisition import aq_base # Foil the old ZopeSecurityPolicy
def pub():
pass
......@@ -13,12 +13,14 @@
"""Module Import Tests
"""
__rcs_id__='$Id: testModuleSecurity.py,v 1.3 2002/08/14 21:28:08 mj Exp $'
__version__='$Revision: 1.3 $'[11:-2]
__rcs_id__='$Id: testModuleSecurity.py,v 1.4 2002/08/21 20:01:37 shane Exp $'
__version__='$Revision: 1.4 $'[11:-2]
import os, sys, unittest
import Testing
import ZODB
from AccessControl import User
from AccessControl import Unauthorized, ModuleSecurityInfo
from AccessControl.ZopeGuards import guarded_import
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment