Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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
  • Loading branch information...
commit 3f3a9ae699a1fa663c0fff96e9f432a2ee05f5d1 1 parent 7be9e52
@ramiro ramiro authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/sitemaps/tests/basic.py
View
4 django/contrib/sitemaps/tests/basic.py
@@ -93,9 +93,9 @@ def test_flatpage_sitemap(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.