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

All Samples(11)  |  Call(10)  |  Derive(0)  |  Import(1)

src/c/o/collective.groupspace.roles-1.0.3/collective/groupspace/roles/tests/test_localroles.py   collective.groupspace.roles(Download)
import unittest
from base import PloneTestCase
from collective.groupspace.roles.localroles import allowedLocalUsersAndGroups
from collective.groupspace.roles.localroles import LocalRoles
from collective.groupspace.roles.localroles import setPolicyDefaultLocalRoles
    def test___init__(self):
        class Dummy:
            pass
        obj = Dummy()
        local_roles = LocalRoles(obj)
            pass
        obj = Dummy()
        local_roles = LocalRoles(obj)
        self.assertEqual((), tuple(local_roles.getAllRoles()))
 
            group_roles = None
        obj = Dummy()
        local_roles = LocalRoles(obj)
        self.assertEqual((), tuple(local_roles.getAllRoles()))
 
            group_roles = {}
        obj = Dummy()
        local_roles = LocalRoles(obj)
        self.assertEqual((), tuple(local_roles.getAllRoles()))