Пример #1
0
 def setUp(self):
     transaction.begin()
     self._policy = PermissiveSecurityPolicy()
     self._oldPolicy = setSecurityPolicy(self._policy)
     self.connection = Zope2.DB.open()
     self.root = self.connection.root()['Application']
     newSecurityManager(None, AnonymousUser().__of__(self.root))
Пример #2
0
 def setUp(self):
     TransactionalTest.setUp(self)
     self._policy = PermissiveSecurityPolicy()
     self._oldPolicy = setSecurityPolicy(self._policy)
     newSecurityManager(None, AnonymousUser().__of__(self.app.acl_users))
Пример #3
0
 def setUp(self):
     transaction.begin()
     self._policy = PermissiveSecurityPolicy()
     self._oldPolicy = setSecurityPolicy(self._policy)
     self.app = self.root = ZopeTestCase.app()
     newSecurityManager(None, AnonymousUser().__of__(self.app.acl_users))