def test_success_targets(self): self.assertEqual( [ { "id": "target1", "role_list": [], }, { "id": "target2", "role_list": ["role1", "role2", "role3"], } ], lib._get_target_like_list_with_tag(self.cib.tree, "acl_target") )
def test_success_groups(self): self.assertEqual( [ { "id": "group1", "role_list": ["role1"], }, { "id": "group2", "role_list": [], } ], lib._get_target_like_list_with_tag(self.cib.tree, "acl_group") )