Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_security.py   Products.Archetypes(Download)
        """ % {'object_id': self.object_id,
               'methods': ['foo']}
        self.logout()
 
    def addPS(self, id, params='', body=''):
        p.manage_permission(TestView, roles=['Manager'], acquire=0)
        self.setRoles([])
        self.logout()
        self.checkUnauthorized(self.check_methods)
 

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_security.py   Products.Archetypes(Download)
        """ % {'object_id': self.object_id,
               'methods': ['foo']}
        self.logout()
 
    def addPS(self, id, params='', body=''):
        p.manage_permission(TestView, roles=['Manager'], acquire=0)
        self.setRoles([])
        self.logout()
        self.checkUnauthorized(self.check_methods)