Did I find the right examples for you? yes no

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

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testFolderButtons.py   Products.CMFPlone(Download)
        # folder_rename requires a non-GET request
        self.setRequestMethod('POST')
        self.setupAuthenticator()
 
    def testTitleIsUpdatedOnTitleChange(self):
        # folder_delete requires a non-GET request
        self.setRequestMethod('POST')
        self.setupAuthenticator()
 
    def beforeTearDown(self):
    def testFolderPublishing(self):
        # Make sure object gets published
        doc_path = '/'.join(self.folder.foo.doc1.getPhysicalPath())
        self.login('reviewer')
        self.setupAuthenticator()
    def testCatalogIsUpdatedOnFolderPublish(self):
        # Make sure catalog gets updated
        doc_path = '/'.join(self.folder.foo.doc1.getPhysicalPath())
        self.login('reviewer')
        self.setupAuthenticator()
        doc2_path = '/'.join(self.folder.bar.doc2.getPhysicalPath())
        self.login('reviewer')
        self.setupAuthenticator()
        self.folder.folder_publish('publish', paths=[doc1_path, doc2_path])
        self.assertEqual(

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testFolderButtons.py   Products.CMFPlone(Download)
        # folder_rename requires a non-GET request
        self.setRequestMethod('POST')
        self.setupAuthenticator()
 
    def testTitleIsUpdatedOnTitleChange(self):
        # folder_delete requires a non-GET request
        self.setRequestMethod('POST')
        self.setupAuthenticator()
 
    def beforeTearDown(self):
    def testFolderPublishing(self):
        # Make sure object gets published
        doc_path = '/'.join(self.folder.foo.doc1.getPhysicalPath())
        self.login('reviewer')
        self.setupAuthenticator()
    def testCatalogIsUpdatedOnFolderPublish(self):
        # Make sure catalog gets updated
        doc_path = '/'.join(self.folder.foo.doc1.getPhysicalPath())
        self.login('reviewer')
        self.setupAuthenticator()
        doc2_path = '/'.join(self.folder.bar.doc2.getPhysicalPath())
        self.login('reviewer')
        self.setupAuthenticator()
        self.folder.folder_publish('publish', paths=[doc1_path, doc2_path])
        self.assertEqual(

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testCatalogTool.py   Products.CMFPlone(Download)
        self.folder.invokeFactory('Document', id='bbb', text='bbb')
 
        self.setupAuthenticator()
 
    def addUser2ToGroup(self):
    def afterSetUp(self):
        self.catalog = self.portal.portal_catalog
        self.folder.invokeFactory('Folder', id='foo')
        self.setupAuthenticator()
 
    def afterSetUp(self):
        self.catalog = self.portal.portal_catalog
        self.workflow = self.portal.portal_workflow
        self.folder.invokeFactory('Document', id='doc')
        self.setupAuthenticator()

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testCatalogTool.py   Products.CMFPlone(Download)
        self.folder.invokeFactory('Document', id='bbb', text='bbb')
 
        self.setupAuthenticator()
 
    def addUser2ToGroup(self):
    def afterSetUp(self):
        self.catalog = self.portal.portal_catalog
        self.folder.invokeFactory('Folder', id='foo')
        self.setupAuthenticator()
 
    def afterSetUp(self):
        self.catalog = self.portal.portal_catalog
        self.workflow = self.portal.portal_workflow
        self.folder.invokeFactory('Document', id='doc')
        self.setupAuthenticator()

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testPortalCreation.py   Products.CMFPlone(Download)
    def afterSetUp(self):
        self.membership = self.portal.portal_membership
        self.catalog = self.portal.portal_catalog
        self.setupAuthenticator()
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testPloneTestCase.py   Products.CMFPlone(Download)
    def afterSetUp(self):
        self.catalog = self.portal.portal_catalog
        self.workflow = self.portal.portal_workflow
        self.setupAuthenticator()
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testPloneFolder.py   Products.CMFPlone(Download)
        self.folder.invokeFactory('Document', id='doc1')
        self.folder.invokeFactory('Document', id='doc2')
        self.setupAuthenticator()
 
    def _contentIds(self, folder):

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testNavTree.py   Products.CMFPlone(Download)
    def afterSetUp(self):
        self.populateSite()
        self.setupAuthenticator()
 
    def populateSite(self):

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testNavigationView.py   Products.CMFPlone(Download)
    def afterSetUp(self):
        self.request = self.app.REQUEST
        self.populateSite()
        self.setupAuthenticator()
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testDisplayContentsTab.py   Products.CMFPlone(Download)
        transaction.savepoint(optimistic=True)  # make rename work
        # Make the folder the default page
        self.setupAuthenticator()
        self.setRequestMethod('POST')
        self.folder.folder_rename(paths=[folder_path], new_ids=['index_html'],

  1 | 2 | 3  Next