def test_user_groups(self): from pyvac.security import groupfinder self.assertEqual(set(groupfinder('jdoe', self.create_request())), set(['user']))
def test_admin_groups(self): from pyvac.security import groupfinder self.assertEqual(set(groupfinder('admin', self.create_request())), set(['admin']))
def test_admin_groups(self): from pyvac.security import groupfinder self.assertEqual(set(groupfinder(u'admin', self.create_request())), set([u'admin']))
def test_user_groups(self): from pyvac.security import groupfinder self.assertEqual(set(groupfinder(u'jdoe', self.create_request())), set([u'user']))
def test_manager_groups(self): from pyvac.security import groupfinder self.assertEqual(set(groupfinder(u'manager1', self.create_request())), set([u'manager']))