Commit 5a7dcc3d authored by HERBERT Ryan's avatar HERBERT Ryan

tests/patient.py alternate order of assertions because permission is now given by default

parent a853dacf
......@@ -109,10 +109,10 @@ class PatientController(unittest.TestCase):
request.vars["group_id"] = fake_group_id
resp = change_permission()
self.assertTrue(auth.get_group_access('patient', patient_id, fake_group_id), "fail to add permission")
self.assertFalse(auth.get_group_access('patient', patient_id, fake_group_id), "fail to remove permission")
resp = change_permission()
self.assertFalse(auth.get_group_access('patient', patient_id, fake_group_id), "fail to remove permission")
self.assertTrue(auth.get_group_access('patient', patient_id, fake_group_id), "fail to add permission")
......
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