Did I find the right examples for you? yes no

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

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testPloneFolder.py   Products.CMFPlone(Download)
    def testListFolderContentsOmitsPrivateObjects(self):
        self.workflow.doActionFor(self.folder.doc1, 'hide')
        self.logout()
        self.assertEqual(self._contentIds(self.folder),
                         ['sub1', 'sub2', 'doc2'])
 
    def testListFolderContentsOmitsPrivateFolders(self):
        self.workflow.doActionFor(self.folder.sub1, 'hide')
        self.logout()
        self.workflow.doActionFor(self.folder.A, 'publish')
 
        self.logout()
        self.assertEqual(self._contentIds(self.folder.A), [])
 
                                          acquire=0)
 
        self.logout()
        self.assertEqual(self._contentIds(self.folder.A), [])
 
 
        # Here comes the reported bug:
        self.logout()
        self.assertEqual(self._contentIds(self.folder.A), ['C'])
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testPloneFolder.py   Products.CMFPlone(Download)
    def testListFolderContentsOmitsPrivateObjects(self):
        self.workflow.doActionFor(self.folder.doc1, 'hide')
        self.logout()
        self.assertEqual(self._contentIds(self.folder),
                         ['sub1', 'sub2', 'doc2'])
 
    def testListFolderContentsOmitsPrivateFolders(self):
        self.workflow.doActionFor(self.folder.sub1, 'hide')
        self.logout()
        self.workflow.doActionFor(self.folder.A, 'publish')
 
        self.logout()
        self.assertEqual(self._contentIds(self.folder.A), [])
 
                                          acquire=0)
 
        self.logout()
        self.assertEqual(self._contentIds(self.folder.A), [])
 
 
        # Here comes the reported bug:
        self.logout()
        self.assertEqual(self._contentIds(self.folder.A), ['C'])
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testSecurityDeclarations.py   Products.CMFPlone(Download)
        self.assertTrue(checkPermission('Allow sendto', portal))
        # should NOT be allowed as anonymous
        self.logout()
        self.assertFalse(checkPermission('Allow sendto', portal))
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testExternalEditorEnabled.py   Products.CMFPlone(Download)
    def testFailForAnonymous(self):
        self.assertTrue(self.doc.externalEditorEnabled())
        self.logout()
        self.assertFalse(self.doc.externalEditorEnabled())
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testDisplayContentsTab.py   Products.CMFPlone(Download)
    def testAnonymous(self):
        # Anonymous should not see the tab
        self.logout()
        self.assertFalse(self.folder.displayContentsTab())
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testContentSecurity.py   Products.CMFPlone(Download)
        doc.base_view()
        # Neither should anonymous
        self.logout()
        doc.base_view()
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testCatalogTool.py   Products.CMFPlone(Download)
    def testSearchIsProtected(self):
        self.login()
        self.folder.invokeFactory("Document", "sekretz")
        self.logout()
        catalog = self.portal.portal_catalog

src/p/r/Products.ATContentTypes-2.2.1/Products/ATContentTypes/tests/test_portal_factory.py   Products.ATContentTypes(Download)
        temp_object = \
            self.folder.restrictedTraverse('portal_factory/Document/tmp_id')
        self.logout()
        self.assertRaises(ValueError, temp_object.portal_factory.doCreate,
                          temp_object, 'foo')

src/p/r/Products.eCards-1.1rc1/Products/eCards/tests/base.py   Products.eCards(Download)
 
        # become normal test runner
        self.logout()
        self.login('test_user_1_')
 

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testSecurityDeclarations.py   Products.CMFPlone(Download)
        self.assertTrue(checkPermission('Allow sendto', portal))
        # should NOT be allowed as anonymous
        self.logout()
        self.assertFalse(checkPermission('Allow sendto', portal))
 

  1 | 2  Next