

def test_get_acl_admin(self):
    from pyshop.security import RootFactory
    root = RootFactory(self.create_request())
    self.assertEqual(set(root.__acl__), set([('Allow', 'admin', 'admin_view'), ('Allow', 'admin', 'download_releasefile'), ('Allow', 'admin', 'upload_releasefile'), ('Allow', 'admin', 'user_view'), ('Allow', 'installer', 'download_releasefile'), ('Allow', 'developer', 'download_releasefile'), ('Allow', 'developer', 'upload_releasefile'), ('Allow', 'developer', 'user_view')]))

dataset/ETHPy150Open mardiros/pyshop/pyshop/tests/test_security.py RootFactoryTestCase.test_get_acl_admin/original