Beispiel #1
0
 def tearDown(self):
     from AccessControl.SecurityManagement import noSecurityManager
     noSecurityManager()
     ZopeTestCase.tearDown(self)
     try:
         from zope.testing.cleanup import cleanUp
         cleanUp()
     except ImportError:
         # BBB: for Zope 2.8
         pass
Beispiel #2
0
 def tearDown(self):
     from AccessControl.SecurityManagement import noSecurityManager
     noSecurityManager()
     ZopeTestCase.tearDown(self)
     try:
         from zope.testing.cleanup import cleanUp
         cleanUp()
     except ImportError:
         # BBB: for Zope 2.8
         pass
Beispiel #3
0
 def setUp(self):
     import Products
     from AccessControl.SecurityManagement import newSecurityManager
     ZopeTestCase.setUp(self)
     try:
         # BBB: for Zope 2.9
         from Products.Five.traversable import FiveTraversable
     except ImportError:
         zcml.load_config('meta.zcml', Products.Five)
         zcml.load_config('traversing.zcml', Products.Five)
     self.root = self.app
     newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
Beispiel #4
0
 def setUp(self):
     import Products
     from AccessControl.SecurityManagement import newSecurityManager
     ZopeTestCase.setUp(self)
     try:
         # BBB: for Zope 2.9
         from Products.Five.traversable import FiveTraversable
     except ImportError:
         zcml.load_config('meta.zcml', Products.Five)
         zcml.load_config('traversing.zcml', Products.Five)
     self.root = self.app
     newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
Beispiel #5
0
 def tearDown(self):
     from AccessControl.SecurityManagement import noSecurityManager
     noSecurityManager()
     ZopeTestCase.tearDown(self)
Beispiel #6
0
 def setUp(self):
     from AccessControl.SecurityManagement import newSecurityManager
     ZopeTestCase.setUp(self)
     self.root = self.app
     newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
Beispiel #7
0
 def setUp(self):
     ZopeTestCase.setUp(self)
     self.root = self.app
Beispiel #8
0
 def tearDown(self):
     from AccessControl.SecurityManagement import noSecurityManager
     noSecurityManager()
     ZopeTestCase.tearDown(self)
Beispiel #9
0
 def setUp(self):
     from AccessControl.SecurityManagement import newSecurityManager
     ZopeTestCase.setUp(self)
     self.root = self.app
     newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
Beispiel #10
0
 def setUp(self):
     ZopeTestCase.setUp(self)
     self.root = self.app