#NEWLINE# def test_requestsite_sitemap( self ) : #NEWLINE# #INDENT# Site . _meta . installed = False #NEWLINE# response = self . client . get ( '/simple/sitemap.xml' ) #NEWLINE# expected_content = ( '<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n<url><loc>http://testserver/location/</loc><lastmod>%s</lastmod><changefreq>never</changefreq><priority>0.5</priority></url>\n</urlset>\n' % date . today ( ) ) #NEWLINE# self . assertXMLEqual ( response . content . decode ( 'utf-8' ) , expected_content )