mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #22261 -- Fixed resolving namespaced URLs for flatpages.
This commit is contained in:
parent
e2fab0b679
commit
2633c5341e
5 changed files with 38 additions and 4 deletions
|
@ -31,5 +31,8 @@ class FlatpagesSitemapTests(TestCase):
|
|||
|
||||
def test_flatpage_sitemap(self):
|
||||
response = self.client.get('/flatpages/sitemap.xml')
|
||||
self.assertIn(b'<url><loc>http://example.com/foo/</loc></url>', response.getvalue())
|
||||
self.assertNotIn(b'<url><loc>http://example.com/private-foo/</loc></url>', response.getvalue())
|
||||
self.assertIn(b'<url><loc>http://example.com/flatpage_root/foo/</loc></url>', response.getvalue())
|
||||
self.assertNotIn(
|
||||
b'<url><loc>http://example.com/flatpage_root/private-foo/</loc></url>',
|
||||
response.getvalue(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue