async def METHOD_NAME(fake_session, mocker, context, tmpdir):
    headers = {}
    with aioresponses() as m:
        context.session = fake_session
        m.get("https://addons.example.com/some/api", status=200, body=b"deadbeef")
        def header_test(*args, **kwargs):
            headers.update(kwargs["headers"])
            mocker.stopall()
            return context.session.get(*args, **kwargs)
        mocker.patch.object(context.session, "get", new=header_test)
        with open(os.path.join(tmpdir, "test_file.bin"), "wb") as f:
            await utils.amo_download(context, "https://addons.example.com/some/api", file=f)
        assert "Authorization" in headers
        assert headers["Authorization"].startswith("JWT ")