'A sitemap index requested in HTTPS is rendered with HTTPS links'

def test_sitemap_index_with_https_request(self):

    response = self.client.get('/simple/index.xml', **self.extra)
    expected_content = ('<?xml    version="1.0"    encoding="UTF-8"?>\n<sitemapindex    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n<sitemap><loc>%s/simple/sitemap-simple.xml</loc></sitemap>\n</sitemapindex>\n' % self.base_url.replace('http://', 'https://'))
    self.assertXMLEqual(response.content.decode(), expected_content)
