Commit 3004ee2a authored by 's avatar

- simplified test setup

parent 155266a4
import unittest import unittest
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager from AccessControl.SecurityManagement import noSecurityManager
from AccessControl.SecurityManager import setSecurityPolicy from AccessControl.SecurityManager import setSecurityPolicy
from zExceptions import Forbidden from zExceptions import Forbidden
...@@ -111,7 +110,6 @@ class TestDeleteCollection(unittest.TestCase): ...@@ -111,7 +110,6 @@ class TestDeleteCollection(unittest.TestCase):
def setUp(self): def setUp(self):
self._oldPolicy = setSecurityPolicy(_DummySecurityPolicy()) self._oldPolicy = setSecurityPolicy(_DummySecurityPolicy())
newSecurityManager(None, object())
def tearDown(self): def tearDown(self):
noSecurityManager() noSecurityManager()
......
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