Kaydet (Commit) 03e7d64d authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Ensure that the sitemaps test deactivates it's locale, so that subsequent tests…

Ensure that the sitemaps test deactivates it's locale, so that subsequent tests aren't run in French.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 05001056
......@@ -5,7 +5,7 @@ from django.contrib.flatpages.models import FlatPage
from django.contrib.sites.models import Site
from django.test import TestCase
from django.utils.formats import localize
from django.utils.translation import activate
from django.utils.translation import activate, deactivate
class SitemapTests(TestCase):
......@@ -44,6 +44,7 @@ class SitemapTests(TestCase):
response = self.client.get('/simple/sitemap.xml')
self.assertContains(response, '<priority>0.5</priority>')
self.assertContains(response, '<lastmod>%s</lastmod>' % date.today().strftime('%Y-%m-%d'))
deactivate()
def test_generic_sitemap(self):
"A minimal generic sitemap can be rendered"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment