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
79e9fa21
Commit
79e9fa21
authored
Jul 10, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some dead code
parent
aa6c5455
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
src/Products/Five/tests/testing/restricted.py
src/Products/Five/tests/testing/restricted.py
+0
-15
No files found.
src/Products/Five/tests/testing/restricted.py
View file @
79e9fa21
...
...
@@ -15,11 +15,8 @@
Based on Plone's RestrictedPythonTestCase, with kind permission by the
Plone developers.
$Id$
"""
from
AccessControl
import
Unauthorized
from
Testing.ZopeTestCase
import
ZopeTestCase
def
addPythonScript
(
folder
,
id
,
params
=
''
,
body
=
''
):
"""Add a PythonScript to folder."""
...
...
@@ -51,15 +48,3 @@ def checkUnauthorized(folder, psbody):
pass
else
:
raise
AssertionError
,
"Authorized but shouldn't be"
class
RestrictedPythonTestCase
(
ZopeTestCase
):
"""Javiotic test case for restricted code."""
def
addPS
(
self
,
id
,
params
=
''
,
body
=
''
):
addPythonScript
(
self
.
folder
,
id
,
params
,
body
)
def
check
(
self
,
psbody
):
checkRestricted
(
self
.
folder
,
psbody
)
def
checkUnauthorized
(
self
,
psbody
):
checkUnauthorized
(
self
.
folder
,
psbody
)
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