def METHOD_NAME(requests_mock):
    # we "fetch" a local ZIP file to simulate a Zenodo record created from a
    # GitHub repository via the Zenodo-GitHub integration
    with zenodo_archive() as zen_path:
        mock_response = {
            "files": [
                {
                    "filename": "some_dir/afake.zip",
                    "links": {"download": f"file://{zen_path}"},
                }
            ],
            "metadata": {"upload_type": "other"},
        }
        requests_mock.get("https://zenodo.org/api/records/1234", json=mock_response)
        requests_mock.get(f"file://{zen_path}", content=open(zen_path, "rb").read())
        zen = Zenodo()
        spec = {"host": test_zen.hosts[1], "record": "1234"}
        with TemporaryDirectory() as d:
            output = []
            for l in zen.fetch(spec, d):
                output.append(l)
            unpacked_files = set(os.listdir(d))
            expected = {"some-other-file.txt", "some-file.txt"}
            assert expected == unpacked_files