def METHOD_NAME(self, custom_conf_dir):
    api_conf = custom_conf_dir / "api.conf"
    write_config(
        api_conf,
        """
        [api]
        ratelimit = no
        """,
    )
    api_conf_d_dir = custom_conf_dir / "api.conf.d"
    api_conf_d_dir.mkdir()
    host_specific_conf = api_conf_d_dir / "01_host_specific.conf"
    url = "https://somehost.example.com"
    write_config(
        host_specific_conf,
        f"""
        [api]
        url = {url}
        """,
    )
    config = Config("api")
    # This is set to 'no' in the default api.conf and not overridden.
    assert config.get("api")["token_auth_enabled"] is False
    # This is set to 'yes' in the default api.conf but overridden in the custom
    # api.conf.
    assert config.get("api")["ratelimit"] is False
    # This is set to http://example.tld in the default api.conf and overridden in
    # api.conf.d/01_host_specific.conf.
    assert config.get("api")["url"] == url