Did I find the right examples for you? yes no

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

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/tests/test_donation.py   Products.PloneGetPaid(Download)
        from zope.publisher.browser import TestRequest
 
        self.setRoles(('Manager',))
        id = self.portal.invokeFactory('Document', 'page-to-donate')
        donation = self.portal.restrictedTraverse('page-to-donate')

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/tests/test_admininterface.py   Products.PloneGetPaid(Download)
    def afterSetUp(self):
        super(testAdminInterface, self).afterSetUp()
        self.manage_options = interfaces.IGetPaidManagementOptions( self.portal )
        self.setRoles(('Manager',))
 

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/tests/test_cart.py   Products.PloneGetPaid(Download)
    def mySetup(self):
        self.setRoles(('Manager',))
        id = self.portal.invokeFactory('Document', 'doc')
        options = interfaces.IGetPaidManagementOptions(self.portal)
        options.buyable_types = ['Document']