Commit 79e9fa21 authored by Hanno Schlichting's avatar Hanno Schlichting

Remove some dead code

parent aa6c5455
......@@ -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)
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