def setUp(self): TransactionalTest.setUp(self) zcml.load_config('meta.zcml', Products.Five) zcml.load_config('permissions.zcml', Products.Five) zcml.load_config('configure.zcml', Products.GenericSetup) zcml.load_config('configure.zcml', Products.CMFCore) zcml.load_config('configure.zcml', Products.DCWorkflow)
def setUp(self): TransactionalTest.setUp(self) root = self.root root._setObject('portal', DummyContent('portal', 'url_portal')) portal = self.portal = root.portal portal.portal_membership = DummyMembershipTool() self.folder = DummyContent('foo', 'url_foo') self.object = DummyContent('bar', 'url_bar')
def setUp(self): TransactionalTest.setUp(self) self.app._setObject('portal', DummyContent('portal')) self.portal = self.app.portal sm = getSiteManager() sm.registerUtility(DummyMembershipTool(), IMembershipTool) self.folder = DummyContent('foo', 'url_foo') self.object = DummyContent('bar', 'url_bar')
def setUp(self): from Products.CMFCore.interfaces import IMembershipTool TransactionalTest.setUp(self) self.site = DummySite('site').__of__(self.app) make_objectmanager_site(self.site) setSite(self.site) self.site._setObject('portal_membership', self._makeOne()) sm = getSiteManager() sm.registerUtility(self.site.portal_membership, IMembershipTool)
def setUp(self): import Products.DCWorkflow TransactionalTest.setUp(self) setUpGenericSetup() zcml.load_config('permissions.zcml', Products.Five) zcml.load_config('configure.zcml', Products.Five.browser) zcml.load_config('configure.zcml', Products.CMFCore) zcml.load_config('configure.zcml', Products.CMFDefault) zcml.load_config('configure.zcml', Products.DCWorkflow)
def setUp(self): TransactionalTest.setUp(self) root = self.root root._setObject('portal', DummyContent('portal', 'url_portal')) portal = self.portal = root.portal sm = getSiteManager(portal) portal.portal_membership = DummyMembershipTool() sm.registerUtility(portal.portal_membership, IMembershipTool) self.folder = DummyContent('foo', 'url_foo') self.object = DummyContent('bar', 'url_bar')
def setUp(self): import Products.CMFCore TransactionalTest.setUp(self) setUpTraversing() zcml.load_config('permissions.zcml', Products.Five) zcml.load_config('configure.zcml', Products.CMFCore) root = self.root root._setObject('portal', DummyContent('portal', 'url_portal')) portal = self.portal = root.portal portal.portal_membership = DummyMembershipTool() self.folder = DummyContent('foo', 'url_foo') self.object = DummyContent('bar', 'url_bar')
def setUp(self): import Products.CMFCore PlacelessSetup.setUp(self) TransactionalTest.setUp(self) zcml.load_config('meta.zcml', Products.Five) zcml.load_config('permissions.zcml', Products.Five) zcml.load_config('configure.zcml', Products.CMFCore) zcml.load_string(_TRAVERSE_ZCML) root = self.root root._setObject('portal', DummyContent('portal', 'url_portal')) portal = self.portal = root.portal portal.portal_membership = DummyMembershipTool() self.folder = DummyContent('foo', 'url_foo') self.object = DummyContent('bar', 'url_bar')
def setUp(self): TransactionalTest.setUp(self) self.site = DummySite('site').__of__(self.app)
def tearDown(self): TransactionalTest.tearDown(self) cleanUp()
def setUp(self): _TemplateSwitcher.setUp(self) TransactionalTest.setUp(self) FSSTXMaker.setUp(self)
def tearDown(self): FSSTXMaker.tearDown(self) TransactionalTest.tearDown(self) _TemplateSwitcher.tearDown(self)
def setUp(self): TransactionalTest.setUp(self) FSReSTMaker.setUp(self)
def tearDown(self): getSiteManager().unregisterUtility(provided=IMembershipTool) TransactionalTest.tearDown(self)
def tearDown(self): TransactionalTest.tearDown(self) FSSTXMaker.tearDown(self) self._setWhichTemplate(self._old_STX_TEMPLATE)
def setUp(self): TransactionalTest.setUp(self) FSDVTest.setUp(self)
def tearDown(self): FSPTMaker.tearDown(self) TransactionalTest.tearDown(self)
def setUp(self): TransactionalTest.setUp(self) FSPTMaker.setUp(self)
def setUp(self): TransactionalTest.setUp(self) FSDTMLMaker.setUp(self) setHooks()
def tearDown(self): cleanUp() FSDTMLMaker.tearDown(self) TransactionalTest.tearDown(self)
def tearDown(self): FSReSTMaker.tearDown(self) TransactionalTest.tearDown(self)
def tearDown(self): cleanUp() FSDVTest.tearDown(self) TransactionalTest.tearDown(self)
def tearDown(self): cleanUp() TransactionalTest.tearDown(self)
def tearDown(self): TransactionalTest.tearDown(self) PlacelessSetup.tearDown(self)
def tearDown(self): clearSite() cleanUp() TransactionalTest.tearDown(self)