當前位置: 首頁>>代碼示例>>Python>>正文


Python testcase.TransactionalTest類代碼示例

本文整理匯總了Python中Products.CMFCore.tests.base.testcase.TransactionalTest的典型用法代碼示例。如果您正苦於以下問題:Python TransactionalTest類的具體用法?Python TransactionalTest怎麽用?Python TransactionalTest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了TransactionalTest類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: setUp

 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)
開發者ID:goschtl,項目名稱:zope,代碼行數:7,代碼來源:test_join.py

示例2: setUp

    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')
開發者ID:c0ns0le,項目名稱:zenoss-4,代碼行數:9,代碼來源:test_ActionInformation.py

示例3: setUp

    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)
開發者ID:zopefoundation,項目名稱:Products.CMFDefault,代碼行數:10,代碼來源:test_MembershipTool.py

示例4: setUp

    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)
開發者ID:goschtl,項目名稱:zope,代碼行數:10,代碼來源:test_join.py

示例5: setUp

    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')
開發者ID:goschtl,項目名稱:zope,代碼行數:11,代碼來源:test_ActionInformation.py

示例6: setUp

    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')
開發者ID:goschtl,項目名稱:zope,代碼行數:13,代碼來源:test_ActionInformation.py

示例7: setUp

    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')
開發者ID:goschtl,項目名稱:zope,代碼行數:15,代碼來源:test_ActionInformation.py

示例8: tearDown

 def tearDown(self):
     cleanUp()
     FSDVTest.tearDown(self)
     TransactionalTest.tearDown(self)
開發者ID:goschtl,項目名稱:zope,代碼行數:4,代碼來源:test_FSImage.py

示例9: setUp

 def setUp(self):
     TransactionalTest.setUp(self)
     FSDVTest.setUp(self)
開發者ID:goschtl,項目名稱:zope,代碼行數:3,代碼來源:test_FSImage.py

示例10: tearDown

 def tearDown(self):
     FSPTMaker.tearDown(self)
     TransactionalTest.tearDown(self)
開發者ID:goschtl,項目名稱:zope,代碼行數:3,代碼來源:test_FSPageTemplate.py

示例11: setUp

 def setUp(self):
     TransactionalTest.setUp(self)
     FSPTMaker.setUp(self)
開發者ID:goschtl,項目名稱:zope,代碼行數:3,代碼來源:test_FSPageTemplate.py

示例12: tearDown

 def tearDown(self):
     TransactionalTest.tearDown(self)
     PlacelessSetup.tearDown(self)
開發者ID:goschtl,項目名稱:zope,代碼行數:3,代碼來源:test_ActionInformation.py

示例13: setUp

 def setUp(self):
     TransactionalTest.setUp(self)
     self.site = DummySite('site').__of__(self.app)
開發者ID:goschtl,項目名稱:zope,代碼行數:3,代碼來源:test_Document.py

示例14: tearDown

 def tearDown(self):
     cleanUp()
     FSDTMLMaker.tearDown(self)
     TransactionalTest.tearDown(self)
開發者ID:goschtl,項目名稱:zope,代碼行數:4,代碼來源:test_FSDTMLMethod.py

示例15: setUp

 def setUp(self):
     TransactionalTest.setUp(self)
     FSDTMLMaker.setUp(self)
     setHooks()
開發者ID:goschtl,項目名稱:zope,代碼行數:4,代碼來源:test_FSDTMLMethod.py


注:本文中的Products.CMFCore.tests.base.testcase.TransactionalTest類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。