[Zope-Checkins] CVS: Zope/lib/python/OFS/tests - testCopySupport.py:1.3
Tres Seaver
tseaver@zope.com
Sat, 17 Nov 2001 05:22:21 -0500
Update of /cvs-repository/Zope/lib/python/OFS/tests
In directory cvs.zope.org:/tmp/cvs-serv21364/lib/python/OFS/tests
Modified Files:
testCopySupport.py
Log Message:
- Restore the policy in tearDown.
=== Zope/lib/python/OFS/tests/testCopySupport.py 1.2 => 1.3 ===
self.policy = UnitTestSecurityPolicy()
- SecurityManager.setSecurityPolicy(self.policy)
+ self.oldPolicy = SecurityManager.setSecurityPolicy( self.policy )
newSecurityManager( None, UnitTestUser().__of__( self.root ) )
def tearDown( self ):
noSecurityManager()
+ SecurityManager.setSecurityPolicy( self.oldPolicy )
+ del self.oldPolicy
del self.policy
del self.folder2
del self.folder1