示例#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')
示例#5
0
    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)
示例#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)
示例#7
0
文件: test_join.py 项目: goschtl/zope
    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)
示例#9
0
    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')
示例#10
0
    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')
示例#11
0
    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')
示例#12
0
    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')
示例#13
0
    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')
示例#14
0
 def setUp(self):
     TransactionalTest.setUp(self)
     self.site = DummySite('site').__of__(self.app)
示例#15
0
文件: test_join.py 项目: goschtl/zope
 def tearDown(self):
     TransactionalTest.tearDown(self)
     cleanUp()
示例#16
0
 def setUp(self):
     _TemplateSwitcher.setUp(self)
     TransactionalTest.setUp(self)
     FSSTXMaker.setUp(self)
示例#17
0
 def tearDown(self):
     FSSTXMaker.tearDown(self)
     TransactionalTest.tearDown(self)
     _TemplateSwitcher.tearDown(self)
示例#18
0
 def setUp(self):
     TransactionalTest.setUp(self)
     FSReSTMaker.setUp(self)
 def tearDown(self):
     getSiteManager().unregisterUtility(provided=IMembershipTool)
     TransactionalTest.tearDown(self)
示例#20
0
 def tearDown(self):
     TransactionalTest.tearDown(self)
     FSSTXMaker.tearDown(self)
     self._setWhichTemplate(self._old_STX_TEMPLATE)
示例#21
0
 def setUp(self):
     TransactionalTest.setUp(self)
     FSDVTest.setUp(self)
示例#22
0
 def tearDown(self):
     FSPTMaker.tearDown(self)
     TransactionalTest.tearDown(self)
示例#23
0
 def setUp(self):
     TransactionalTest.setUp(self)
     FSPTMaker.setUp(self)
示例#24
0
 def setUp(self):
     TransactionalTest.setUp(self)
     FSDTMLMaker.setUp(self)
     setHooks()
示例#25
0
 def tearDown(self):
     cleanUp()
     FSDTMLMaker.tearDown(self)
     TransactionalTest.tearDown(self)
示例#26
0
 def tearDown(self):
     FSReSTMaker.tearDown(self)
     TransactionalTest.tearDown(self)
示例#27
0
 def setUp(self):
     _TemplateSwitcher.setUp(self)
     TransactionalTest.setUp(self)
     FSSTXMaker.setUp(self)
示例#28
0
 def tearDown(self):
     cleanUp()
     FSDVTest.tearDown(self)
     TransactionalTest.tearDown(self)
示例#29
0
 def tearDown(self):
     FSSTXMaker.tearDown(self)
     TransactionalTest.tearDown(self)
     _TemplateSwitcher.tearDown(self)
示例#30
0
 def tearDown(self):
     TransactionalTest.tearDown(self)
     FSSTXMaker.tearDown(self)
     self._setWhichTemplate(self._old_STX_TEMPLATE)
示例#31
0
 def setUp(self):
     TransactionalTest.setUp(self)
     self.site = DummySite('site').__of__(self.app)
示例#32
0
 def tearDown(self):
     cleanUp()
     TransactionalTest.tearDown(self)
示例#33
0
 def tearDown(self):
     TransactionalTest.tearDown(self)
     PlacelessSetup.tearDown(self)
 def tearDown(self):
     clearSite()
     cleanUp()
     TransactionalTest.tearDown(self)