#NEWLINE# def test_cached_sitemap_index( self ) : #NEWLINE# #INDENT# '\n        Check that a cached sitemap index can be rendered (#2713).\n        ' #NEWLINE# response = self . client . get ( '/cached/index.xml' ) #NEWLINE# expected_content = ( '<?xml version="1.0" encoding="UTF-8"?>\n<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n<sitemap><loc>%s/cached/sitemap-simple.xml</loc></sitemap>\n</sitemapindex>\n' % self . base_url ) #NEWLINE# self . assertXMLEqual ( response . content . decode ( 'utf-8' ) , expected_content )