[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
This commit is contained in:
Ramiro Morales 2011-02-05 19:05:30 +00:00
parent 7be9e52041
commit 3f3a9ae699
1 changed files with 2 additions and 2 deletions

View File

@ -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