Did I find the right examples for you? yes no

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

src/c/o/collective.contentgroup-0.1b3/collective/contentgroup/tests/test_group_manager.py   collective.contentgroup(Download)
from Products.PluggableAuthService.plugins.DynamicGroupsPlugin import (
    DynamicGroupsPlugin, addDynamicGroupsPlugin)
from base_groupmanager import BaseGroupManagerTestCase
from collective.contentgroup.groupmanager import (PortalGroupsGroupManager, 
    DGPGroupsGroupManager)
    def create_group_manager(self):
        plugin_id = 'dgp'
        addDynamicGroupsPlugin(self.portal.acl_users, plugin_id)        
        return DGPGroupsGroupManager(
            plugin_id=plugin_id, 

src/c/o/collective.contentgroup-0.1b3/collective/contentgroup/tests/test_dynamicgroups.py   collective.contentgroup(Download)
from base import BaseTestCase
from Products.PluggableAuthService.plugins.DynamicGroupsPlugin import (
    DynamicGroupsPlugin, addDynamicGroupsPlugin)
import unittest
from StringIO import StringIO
        self.gtool = self.portal.portal_groups
        self.plugin_id = 'dgp'
        addDynamicGroupsPlugin(self.pas, self.plugin_id)
        self.plugin = getattr(self.pas, self.plugin_id)
        activatePluginInterfaces(self.portal, self.plugin_id, StringIO())