def test_resolve_alias_regular_permission(self): component = Permissions(Mock()) result = component.resolve_alias(["foo", "bar", "baz"], {}) self.assertEqual(result, ["foo", "bar", "baz"])
def test_resolve_alias(self): component = Permissions(Mock()) result = component.resolve_alias("alias", {"alias": ["foo", "bar", "baz"]}) self.assertEqual(result, ["foo", "bar", "baz"])