async def METHOD_NAME(self, client, alias_name, index_name):
    alias = SearchAlias(name=alias_name, indexes=[index_name])
    result = await client.create_alias(alias)
    assert result.name == alias_name
    assert set(result.indexes) == {index_name}