'Check the correct URL in location, recreating it according to the title
attributes (instead of using Page.get_absolute_url) for a lower level
check'

def test_sitemap_items_location(self):

    sitemap = CMSSitemap()
    urlset = sitemap.get_urls()
    for item in urlset:
        if item['item'].path:
            url = ('http://example.com/%s/%s/' % (item['item'].language, item['item'].path))
        else:
            url = ('http://example.com/%s/%s' % (item['item'].language, item['item'].path))
        self.assertEqual(item['location'], url)
