def METHOD_NAME(mocker, app):
    """Test Sitemap cache updating with fixed parameters."""
    def make_url(loc):
        return {'loc': 'https://localhost' + loc}
    urls = [make_url('/record/' + str(i)) for i in range(5)]
    cache_mock = mocker.patch('zenodo.modules.sitemap.ext.current_cache')
    update_sitemap_cache(urls=urls, max_url_count=2)
    sitemap1 = render_template('zenodo_sitemap/sitemap.xml',
                               urlset=urls[:2])
    cache_mock.set.assert_any_call('sitemap:1', sitemap1, timeout=-1)
    sitemap2 = render_template('zenodo_sitemap/sitemap.xml',
                               urlset=urls[2:4])
    cache_mock.set.assert_any_call('sitemap:2', sitemap2, timeout=-1)
    sitemap3 = render_template('zenodo_sitemap/sitemap.xml',
                               urlset=urls[4:])
    cache_mock.set.assert_any_call('sitemap:3', sitemap3, timeout=-1)
    sitemapindex = [make_url('/sitemap{}.xml'.format(i)) for i in range(1, 4)]
    sitemap0 = render_template('zenodo_sitemap/sitemapindex.xml',
                               urlset=sitemapindex, url_scheme='https')
    cache_mock.set.assert_any_call('sitemap:0', sitemap0, timeout=-1)