Exemplo n.º 1
0
 def test_sitemap(self):
     res = self.client.get(reverse('sitemap'))
     self.assertEqual(res.status_code, 200)
     for s in sitemaps.keys():
         res = self.client.get(reverse('sitemaps', kwargs={'section': s}))
         self.assertEqual(res.status_code, 200,
                          'sitemap %s returned %d' % (s, res.status_code))
Exemplo n.º 2
0
 def test_sitemap(self):
     res = self.client.get(reverse('sitemap'))
     self.assertEqual(res.status_code, 200)
     for s in sitemaps.keys():
         res = self.client.get(reverse('sitemaps', kwargs={'section':s}))
         self.assertEqual(res.status_code, 200, 'sitemap %s returned %d' %
                          (s,res.status_code))
Exemplo n.º 3
0
 def test_sitemap(self):
     res = self.client.get(reverse("sitemap"))
     self.assertEqual(res.status_code, 200)
     for s in sitemaps.keys():
         res = self.client.get(reverse("sitemaps", kwargs={"section": s}))
         self.assertEqual(res.status_code, 200, "sitemap %s returned %d" % (s, res.status_code))