[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates/tests - testDTMLTests.py:1.5.16.1
Jens Vagelpohl
jens@zope.com
Thu, 24 Jan 2002 15:39:37 -0500
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/tests
In directory cvs.zope.org:/tmp/cvs-serv29040
Modified Files:
Tag: Zope-2_5-branch
testDTMLTests.py
Log Message:
Backporting unit test fix from the HEAD
=== Zope/lib/python/Products/PageTemplates/tests/testDTMLTests.py 1.5 => 1.5.16.1 ===
from Acquisition import Implicit
from AccessControl import SecurityManager
+from AccessControl.SecurityManagement import noSecurityManager
class AqPageTemplate(Implicit, PageTemplate):
pass
@@ -48,9 +49,11 @@
self.t=(AqPageTemplate())
self.policy = UnitTestSecurityPolicy()
self.oldPolicy = SecurityManager.setSecurityPolicy( self.policy )
+ noSecurityManager() # Use the new policy.
def tearDown(self):
SecurityManager.setSecurityPolicy( self.oldPolicy )
+ noSecurityManager() # Reset to old policy.
def check1(self):
"""DTML test 1: if, in, and var: