'A minimal generic sitemap can be rendered'

def test_generic_sitemap(self):

    response = self.client.get(u'/generic/sitemap.xml')
    expected = u''
    for pk in TestModel.objects.values_list(u'id', flat=True):
        expected += (u'<url><loc>%s/testmodel/%s/</loc></url>' % (self.base_url, pk))
    expected_content = (u'<?xml    version="1.0"    encoding="UTF-8"?>\n<urlset    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n%s\n</urlset>\n' % expected)
    self.assertXMLEqual(response.content.decode(u'utf-8'), expected_content)
