Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
2cd2da12
Commit
2cd2da12
authored
Jan 11, 2002
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made sure the special security policy takes effect for this test.
parent
b5bccc4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lib/python/Products/PageTemplates/tests/testHTMLTests.py
lib/python/Products/PageTemplates/tests/testHTMLTests.py
+3
-0
No files found.
lib/python/Products/PageTemplates/tests/testHTMLTests.py
View file @
2cd2da12
...
...
@@ -16,6 +16,7 @@ import os, sys, unittest
from
Products.PageTemplates.tests
import
util
from
Products.PageTemplates.PageTemplate
import
PageTemplate
from
AccessControl
import
SecurityManager
from
AccessControl.SecurityManagement
import
noSecurityManager
from
Acquisition
import
Implicit
class
AqPageTemplate
(
Implicit
,
PageTemplate
):
...
...
@@ -54,9 +55,11 @@ class HTMLTests(unittest.TestCase):
f
.
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
assert_expected
(
self
,
t
,
fname
,
*
args
,
**
kwargs
):
t
.
write
(
util
.
read_input
(
fname
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment