Exemplo n.º 1
0
 def setUp(self):
     self.fpath = "/humgen/projects/serapis_staging/test-baton/test_add_acls.txt"
     BatonDataObjectAPI.remove_all_acls(self.fpath)
     self.acl = ACL(user='******', zone='humgen', permission='READ')
     BatonDataObjectAPI.add_or_replace_acl(self.fpath, self.acl)
     existing_acls = BatonDataObjectAPI.get_acls(self.fpath)
     self.assertEqual(len(existing_acls), 1)
Exemplo n.º 2
0
 def tearDown(self):
     BatonDataObjectAPI.remove_all_acls(self.fpath)
Exemplo n.º 3
0
 def setUp(self):
     self.fpath = "/humgen/projects/serapis_staging/test-baton/test_add_acls.txt"
     BatonDataObjectAPI.remove_all_acls(self.fpath)
Exemplo n.º 4
0
 def test_remove_all_acls(self):
     BatonDataObjectAPI.remove_all_acls(self.fpath)
     acls_set = BatonDataObjectAPI.get_acls(self.fpath)
     self.assertEqual(set(), acls_set)