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))
def setUp(self): from AccessControl.SecurityManagement import newSecurityManager ZopeTestCase.setUp(self) self.root = self.app newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
def setUp(self): ZopeTestCase.setUp(self) self.root = self.app