The priority value should not be localized.
(self)
| 245 | self.assertContains(response, "<lastmod>2013-03-13T10:00:00-05:00</lastmod>") |
| 246 | |
| 247 | def test_localized_priority(self): |
| 248 | """The priority value should not be localized.""" |
| 249 | with translation.override("fr"): |
| 250 | self.assertEqual("0,3", localize(0.3)) |
| 251 | # Priorities aren't rendered in localized format. |
| 252 | response = self.client.get("/simple/sitemap.xml") |
| 253 | self.assertContains(response, "<priority>0.5</priority>") |
| 254 | self.assertContains(response, "<lastmod>%s</lastmod>" % date.today()) |
| 255 | |
| 256 | @modify_settings(INSTALLED_APPS={"remove": "django.contrib.sites"}) |
| 257 | def test_requestsite_sitemap(self): |
nothing calls this directly
no test coverage detected