Exemple #1
0
 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):
        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):
        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)
Exemple #6
0
    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)
Exemple #7
0
    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):
        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):
        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):
        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
        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')
Exemple #14
0
 def setUp(self):
     TransactionalTest.setUp(self)
     self.site = DummySite('site').__of__(self.app)
Exemple #15
0
 def tearDown(self):
     TransactionalTest.tearDown(self)
     cleanUp()
Exemple #16
0
 def setUp(self):
     _TemplateSwitcher.setUp(self)
     TransactionalTest.setUp(self)
     FSSTXMaker.setUp(self)
Exemple #17
0
 def tearDown(self):
     FSSTXMaker.tearDown(self)
     TransactionalTest.tearDown(self)
     _TemplateSwitcher.tearDown(self)
Exemple #18
0
 def setUp(self):
     TransactionalTest.setUp(self)
     FSReSTMaker.setUp(self)
 def tearDown(self):
     getSiteManager().unregisterUtility(provided=IMembershipTool)
     TransactionalTest.tearDown(self)
Exemple #20
0
 def tearDown(self):
     TransactionalTest.tearDown(self)
     FSSTXMaker.tearDown(self)
     self._setWhichTemplate(self._old_STX_TEMPLATE)
Exemple #21
0
 def setUp(self):
     TransactionalTest.setUp(self)
     FSDVTest.setUp(self)
Exemple #22
0
 def tearDown(self):
     FSPTMaker.tearDown(self)
     TransactionalTest.tearDown(self)
Exemple #23
0
 def setUp(self):
     TransactionalTest.setUp(self)
     FSPTMaker.setUp(self)
Exemple #24
0
 def setUp(self):
     TransactionalTest.setUp(self)
     FSDTMLMaker.setUp(self)
     setHooks()
Exemple #25
0
 def tearDown(self):
     cleanUp()
     FSDTMLMaker.tearDown(self)
     TransactionalTest.tearDown(self)
Exemple #26
0
 def tearDown(self):
     FSReSTMaker.tearDown(self)
     TransactionalTest.tearDown(self)
Exemple #27
0
 def setUp(self):
     _TemplateSwitcher.setUp(self)
     TransactionalTest.setUp(self)
     FSSTXMaker.setUp(self)
Exemple #28
0
 def tearDown(self):
     cleanUp()
     FSDVTest.tearDown(self)
     TransactionalTest.tearDown(self)
Exemple #29
0
 def tearDown(self):
     FSSTXMaker.tearDown(self)
     TransactionalTest.tearDown(self)
     _TemplateSwitcher.tearDown(self)
Exemple #30
0
 def tearDown(self):
     TransactionalTest.tearDown(self)
     FSSTXMaker.tearDown(self)
     self._setWhichTemplate(self._old_STX_TEMPLATE)
Exemple #31
0
 def setUp(self):
     TransactionalTest.setUp(self)
     self.site = DummySite('site').__of__(self.app)
Exemple #32
0
 def tearDown(self):
     cleanUp()
     TransactionalTest.tearDown(self)
 def tearDown(self):
     TransactionalTest.tearDown(self)
     PlacelessSetup.tearDown(self)
 def tearDown(self):
     clearSite()
     cleanUp()
     TransactionalTest.tearDown(self)