Exemplo n.º 1
0
 def tearDown(self):
     super(UGMLayer, self).tearDown()
     import cone.app
     ugm = cone.app.cfg.auth
     for uid in ['viewer', 'editor', 'owner', 'manager', 'max', 'sepp']:
         del ugm.users[uid]
     ugm.users()
Exemplo n.º 2
0
 def tearDown(self):
     super(UGMLayer, self).tearDown()
     import cone.app
     ugm = cone.app.cfg.auth
     for uid in ['viewer', 'editor', 'admin', 'manager', 'max', 'sepp',
                 'localmanager_1', 'localmanager_2']:
         del ugm.users[uid]
     for gid in ['admin_group_1', 'admin_group_2']:
         del ugm.groups[gid]
     ugm.users()