Commit 85715626 authored by HERBERT Ryan's avatar HERBERT Ryan

tests/group.py Added checks for group permission inheritance

parent afc4240b
......@@ -52,9 +52,12 @@ class GroupController(unittest.TestCase):
def test1AddForm(self):
request.vars["group_name"] = "test_group_1"
request.vars["info"] = "test_group_1"
request.vars["group_parent"] = fake_group_id
resp = add_form()
self.assertTrue(auth.has_membership("test_group_1"), "group creation failed")
new_group_id = db(db.auth_group.role == "test_group_1").select(db.auth_group.id).first().id
self.assertTrue(auth.get_permission("read", "patient", fake_patient_id, group=new_group_id), "permissions transfer failed")
def testConfirm(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment