Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_reference_optimizations.py   Products.Archetypes(Download)
    def afterSetUp(self):
        self.rc = getToolByName(self.portal, 'reference_catalog')
        self.loginAsPortalOwner()
        makeContent(self.portal, portal_type='DDocument', id='doc1')
        makeContent(self.portal, portal_type='DDocument', id='doc2')

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_default_mimetypes.py   Products.Archetypes(Download)
    def test_ATDocumentDefaultType(self):
        self.loginAsPortalOwner()
        # we create a new document:
        self.portal.invokeFactory('DDocument', id='testdoc', title='TestDocument')
        obj = self.portal.testdoc

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_reference_optimizations.py   Products.Archetypes(Download)
    def afterSetUp(self):
        self.rc = getToolByName(self.portal, 'reference_catalog')
        self.loginAsPortalOwner()
        makeContent(self.portal, portal_type='DDocument', id='doc1')
        makeContent(self.portal, portal_type='DDocument', id='doc2')

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_default_mimetypes.py   Products.Archetypes(Download)
    def test_ATDocumentDefaultType(self):
        self.loginAsPortalOwner()
        # we create a new document:
        self.portal.invokeFactory('DDocument', id='testdoc', title='TestDocument')
        obj = self.portal.testdoc