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

All Samples(77)  |  Call(34)  |  Derive(0)  |  Import(43)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_TypesTool.py   Products.CMFCore(Download)
    def test_constructInstance_wo_Roles(self):
        from AccessControl.SecurityManagement import newSecurityManager
        from AccessControl.unauthorized import Unauthorized
        from Products.CMFCore.tests.base.security import UserWithRoles
        newSecurityManager(None, UserWithRoles('FooViewer').__of__(self.f))

Previous  1 | 2 | 3 | 4 | 5