(cls)
| 23 | |
| 24 | @classmethod |
| 25 | def setUpTestData(cls): |
| 26 | Site = apps.get_model("sites.Site") |
| 27 | current_site = Site.objects.get_current() |
| 28 | current_site.flatpage_set.create(url="/foo/", title="foo") |
| 29 | current_site.flatpage_set.create( |
| 30 | url="/private-foo/", title="private foo", registration_required=True |
| 31 | ) |
| 32 | |
| 33 | def test_flatpage_sitemap(self): |
| 34 | response = self.client.get("/flatpages/sitemap.xml") |
nothing calls this directly
no test coverage detected