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

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

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_generator_unit.py   ftw.lawgiver(Download)
    def test_workflow_with_managed_permissions(self):
        self.register_permissions(**{
                'cmf.ModifyPortalContent': 'Modify portal content',
                'zope2.View': 'View',
                'zope2.AccessContentsInformation': \
    def test_workflow_with_unkown_action_raises(self):
        self.register_permissions(**{
                'cmf.ModifyPortalContent': 'Modify portal content',
                'zope2.View': 'View',
                'zope2.AccessContentsInformation': \
    def test_inherited_roles(self):
        self.register_permissions(**{
                'cmf.ModifyPortalContent': 'Modify portal content',
                'zope2.View': 'View',
                'zope2.AccessContentsInformation': \

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_generator_integration.py   ftw.lawgiver(Download)
        registry._permissions = {}
 
        self.register_permissions(**{
                'cmf.ModifyPortalContent': 'Modify portal content',
                'zope2.View': 'View',

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_collector.py   ftw.lawgiver(Download)
    def test_get_grouped_permissions_DEFAULT(self):
        self.register_permissions(**{
                'cmf.AddPortalContent': 'Add portal content',
                'zope2.View': 'View'})
 
    def test_get_grouped_permissions_NON_DEFAULT(self):
        self.register_permissions(**{'zope2.View': 'View'})
        self.map_permissions(['View'], 'view', workflow_name='foo')
 
        self.assertEquals({}, self.collector.get_grouped_permissions('bar'))
 
    def test_get_grouped_permissions_MIXED(self):
        self.register_permissions(**{
    def test_get_grouped_permissions_UNREGISTERED(self):
        self.register_permissions(**{'zope2.View': 'View'})
 
        self.map_permissions(['View'], 'view')
        self.map_permissions(['Add portal content'], 'edit')
    def test_get_grouped_permissions_UNMANAGED(self):
        self.register_permissions(**{
                'cmf.AddPortalContent': 'Add portal content',
                'zope2.View': 'View',
                'cmf.ManageProperties': 'Manage properties'})