Did I find the right examples for you? yes no

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

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testCatalogTool.py   Products.CMFPlone(Download)
    def addUser2ToGroup(self):
        self.groups.groupWorkspacesCreationFlag = 0
        self.groups.addGroup(group2, None, [], [])
        group = self.groups.getGroupById(group2)
        self.loginAsPortalOwner()  # GRUF 3.52

src/c/y/cyn.in-HEAD/products/Calendaring/tests/test_content.py   cyn.in(Download)
    def afterSetUp(self):
        self.loginAsPortalOwner()
        self._setupCalendar()
        self.ct = self.portal.portal_catalog
        self.mt = self.portal.portal_membership

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testPortalCreation.py   Products.CMFPlone(Download)
    def testSubsequentProfileImportSucceeds(self):
        # Subsequent profile imports fail (#5439)
        self.loginAsPortalOwner()
        setup_tool = getToolByName(self.portal, "portal_setup")
        # this will raise an error if it fails
    def testFinalStepsWithMembersFolderDeleted(self):
        # We want the final steps to work even if the 'Members' folder
        # is gone
        self.loginAsPortalOwner()
        portal = self.portal

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testNavTree.py   Products.CMFPlone(Download)
    def testCurrentParent(self):
        self.loginAsPortalOwner()
        self.portal.invokeFactory('Document', 'doc')
        context = self.portal.doc1
        tree = buildFolderTree(self.portal, obj=context)['children']

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testEmailLogin.py   Products.CMFPlone(Download)
        # The admin *should* be able to change the login name of
        # another user.  See http://dev.plone.org/plone/ticket/11255
        self.loginAsPortalOwner()
        set_own_login_name(member, 'vanrees')
        users = self.portal.acl_users.source_users
        self.assertEqual(users.getLoginForUserId('maurits'), 'vanrees')
 
    def testAdminSetOwnLoginName(self):
        memship = self.portal.portal_membership
        self.loginAsPortalOwner()

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testCatalogTool.py   Products.CMFPlone(Download)
    def addUser2ToGroup(self):
        self.groups.groupWorkspacesCreationFlag = 0
        self.groups.addGroup(group2, None, [], [])
        group = self.groups.getGroupById(group2)
        self.loginAsPortalOwner()  # GRUF 3.52

src/p/r/Products.Calendaring-0.5b1/Products/Calendaring/tests/test_content.py   Products.Calendaring(Download)
    def afterSetUp(self):
        self.loginAsPortalOwner()
        self._setupCalendar()
        self.ct = self.portal.portal_catalog
        self.mt = self.portal.portal_membership

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testPortalCreation.py   Products.CMFPlone(Download)
    def testSubsequentProfileImportSucceeds(self):
        # Subsequent profile imports fail (#5439)
        self.loginAsPortalOwner()
        setup_tool = getToolByName(self.portal, "portal_setup")
        # this will raise an error if it fails
    def testFinalStepsWithMembersFolderDeleted(self):
        # We want the final steps to work even if the 'Members' folder
        # is gone
        self.loginAsPortalOwner()
        portal = self.portal

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testNavTree.py   Products.CMFPlone(Download)
    def testCurrentParent(self):
        self.loginAsPortalOwner()
        self.portal.invokeFactory('Document', 'doc')
        context = self.portal.doc1
        tree = buildFolderTree(self.portal, obj=context)['children']

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testEmailLogin.py   Products.CMFPlone(Download)
        # The admin *should* be able to change the login name of
        # another user.  See http://dev.plone.org/plone/ticket/11255
        self.loginAsPortalOwner()
        set_own_login_name(member, 'vanrees')
        users = self.portal.acl_users.source_users
        self.assertEqual(users.getLoginForUserId('maurits'), 'vanrees')
 
    def testAdminSetOwnLoginName(self):
        memship = self.portal.portal_membership
        self.loginAsPortalOwner()