def METHOD_NAME(self):
    """
    Tests that when the proxy_config function is called,
    for the proxy minion, eg. /etc/salt/proxy.d/<The-Proxy-ID>/*.conf
    """
    proxyid = random_string("proxy-")
    root_dir = pathlib.Path(tempfile.mkdtemp(dir=RUNTIME_VARS.TMP))
    self.addCleanup(shutil.rmtree, str(root_dir), ignore_errors=True)
    conf_dir = root_dir / "conf"
    conf_file = conf_dir / "proxy"
    conf_d_dir = conf_dir / "proxy.d"
    proxy_conf_d = conf_d_dir / proxyid
    proxy_conf_d.mkdir(parents=True)
    with salt.utils.files.fopen(str(conf_file), "w") as wfh:
        wfh.write(
            textwrap.dedent(
                """\
                id: {id}
                root_dir: {root_dir}
                pidfile: run/proxy.pid
                pki_dir: pki
                cachedir: cache
                sock_dir: run/proxy
                log_file: logs/proxy.log
                """.format(
                    id=proxyid, root_dir=root_dir
                )
            )
        )
    with salt.utils.files.fopen(str(proxy_conf_d / "_schedule.conf"), "w") as wfh:
        wfh.write(
            textwrap.dedent(
                """\
                schedule:
                  test_job:
                    args: [arg1, arg2]
                    enabled: true
                    function: test.arg
                    jid_include: true
                    kwargs: {key1: value1, key2: value2}
                    maxrunning: 1
                    name: test_job
                    return_job: false
                """
            )
        )
    opts = salt.config.proxy_config(
        str(conf_file),
        minion_id=proxyid,
        cache_minion_id=False,
    )
    self.assertIn("schedule", opts)
    self.assertIn("test_job", opts["schedule"])