[Zope-Checkins] SVN: Zope/trunk/src/Products/Five/tests/testing/restricted.py Remove some dead code

Hanno Schlichting hannosch at hannosch.eu
Sat Jul 10 07:15:55 EDT 2010


Log message for revision 114503:
  Remove some dead code
  

Changed:
  U   Zope/trunk/src/Products/Five/tests/testing/restricted.py

-=-
Modified: Zope/trunk/src/Products/Five/tests/testing/restricted.py
===================================================================
--- Zope/trunk/src/Products/Five/tests/testing/restricted.py	2010-07-10 11:13:04 UTC (rev 114502)
+++ Zope/trunk/src/Products/Five/tests/testing/restricted.py	2010-07-10 11:15:54 UTC (rev 114503)
@@ -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 @@
         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)



More information about the Zope-Checkins mailing list