Did I find the right examples for you? yes no

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

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testContentSecurity.py   Products.CMFPlone(Download)
            subfolder.new.base_view()
        except Unauthorized:
            self.fail("Could not access base_view on 'new'")
        # This should not raise Unauthorized
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testContentSecurity.py   Products.CMFPlone(Download)
            subfolder.new.base_view()
        except Unauthorized:
            self.fail("Could not access base_view on 'new'")
        # This should not raise Unauthorized
 

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testPloneTool.py   Products.CMFPlone(Download)
            title = self.utils.pretty_title_or_id(new_obj)
        except AttributeError, e:
            self.fail('pretty_title_or_id failed to include context %s' % e)
        self.assertEqual(title, 'portal_catalog')
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testPloneTool.py   Products.CMFPlone(Download)
            title = self.utils.pretty_title_or_id(new_obj)
        except AttributeError, e:
            self.fail('pretty_title_or_id failed to include context %s' % e)
        self.assertEqual(title, 'portal_catalog')
 

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testSecurityDeclarations.py   Products.CMFPlone(Download)
            sendto = self.folder.restrictedTraverse('@@sendto_form')
            msg = sendto()
            self.fail("Sendto did not throw unauthorized")
        except Unauthorized:
            pass
    def test_OwnerCanViewConstrainTypesForm(self):
        try:
            self.folder.restrictedTraverse('folder_constraintypes_form')
        except Unauthorized:
            self.fail("Owner could not access folder_constraintypes_form")

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testSecurityDeclarations.py   Products.CMFPlone(Download)
            sendto = self.folder.restrictedTraverse('@@sendto_form')
            msg = sendto()
            self.fail("Sendto did not throw unauthorized")
        except Unauthorized:
            pass
    def test_OwnerCanViewConstrainTypesForm(self):
        try:
            self.folder.restrictedTraverse('folder_constraintypes_form')
        except Unauthorized:
            self.fail("Owner could not access folder_constraintypes_form")

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testSiteAdminRole.py   Products.CMFPlone(Download)
                errors.append('%s: should be disabled' % p)
        if errors:
            self.fail('Unexpected permissions for Site Administrator role:\n' +
                      ''.join(['\t%s\n' % msg for msg in errors])
                     )

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testNavigationView.py   Products.CMFPlone(Download)
        for c in tree['children']:
            if c['item'].getPath() == '/plone/folder2':
                self.fail()
 
    def testShowAllParentsOverridesNavTreeExcludesItemsWithExcludeProperty(self):
        for c in tree['children']:
            if c['item'].getPath() == '/plone/folder2':
                self.fail()
 
    def testShowAllParentsOverridesNavTreeExcludesItemsInIdsNotToList(self):

src/m/r/mr.importer-1.0a5/tests.py   mr.importer(Download)
            self.portal.invokeFactory('Folder', 'foo')
        except AccessControl_Unauthorized:
            self.fail()
 
 

src/p/a/parse2plone-1.0a4/tests.py   parse2plone(Download)
            self.portal.invokeFactory('Folder', 'foo')
        except AccessControl_Unauthorized:
            self.fail()
 
 

  1 | 2  Next