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