def METHOD_NAME():
    http_proxy = 'http://proxy.example.com:8080'
    opts = URLGrabberOptions(proxy=None, proxies={'http': http_proxy, 'https': http_proxy, 'ftp': http_proxy})
    url = "https://download.opensuse.org"
    CFG = Mock()
    CFG.http_proxy = http_proxy
    CFG.REPOSYNC_TIMEOUT = 42
    CFG.REPOSYNC_MINRATE = 42
    CFG.REPOSYNC_DOWNLOAD_THREADS = 42 # Throws ValueError if not defined
    curl_spy = Mock()
    with patch(
        "spacewalk.satellite_tools.download.pycurl.Curl", Mock(return_value=curl_spy)
    ), patch("uyuni.common.context_managers.CFG", CFG):
        pycurlobj = PyCurlFileObjectThread(url, "file.rpm", opts, curl_spy, None)
        assert pycurlobj.opts.proxy == http_proxy