def METHOD_NAME():
    response = requests.Response()
    response.status_code = 200
    response.iter_content = lambda _: ['content']
    stringio = StringIO()
    session = requests.Session()
    session.get = lambda _: response
    dumper.http_download_to_file('http://example.com', stringio, session)
    stringio.seek(0)
    assert stringio.read() == 'content'