Commit 3f3a9ae6 authored by Ramiro Morales's avatar Ramiro Morales
Browse files

[1.2.X] Fixed small problem in backport of [15418] tests changes to 1.2.X ([15419]). Refs #15111.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 7be9e520
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -93,9 +93,9 @@ class SitemapTests(TestCase):
            private.sites.add(settings.SITE_ID)
            response = self.client.get('/flatpages/sitemap.xml')
            # Public flatpage should be in the sitemap
            self.assertContains(response, '<loc>http://%s%s</loc>' % (self.base_url, public.url))
            self.assertContains(response, '<loc>%s%s</loc>' % (self.base_url, public.url))
            # Private flatpage should not be in the sitemap
            self.assertNotContains(response, '<loc>http://%s%s</loc>' % (self.base_url, private.url))
            self.assertNotContains(response, '<loc>%s%s</loc>' % (self.base_url, private.url))

    def test_requestsite_sitemap(self):
        # Make sure hitting the flatpages sitemap without the sites framework