Пример #1
0
 def test_user_groups(self):
     from pyvac.security import groupfinder
     self.assertEqual(set(groupfinder('jdoe', self.create_request())),
                      set(['user']))
Пример #2
0
 def test_admin_groups(self):
     from pyvac.security import groupfinder
     self.assertEqual(set(groupfinder('admin', self.create_request())),
                      set(['admin']))
Пример #3
0
 def test_admin_groups(self):
     from pyvac.security import groupfinder
     self.assertEqual(set(groupfinder(u'admin', self.create_request())),
                      set([u'admin']))
Пример #4
0
 def test_user_groups(self):
     from pyvac.security import groupfinder
     self.assertEqual(set(groupfinder(u'jdoe', self.create_request())),
                      set([u'user']))
Пример #5
0
 def test_manager_groups(self):
     from pyvac.security import groupfinder
     self.assertEqual(set(groupfinder(u'manager1', self.create_request())),
                      set([u'manager']))