summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-10-09 14:47:04 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-10-09 14:47:04 +0000
commite8d50382188b475ce4b0d9dd47566200fa494971 (patch)
treee4955b925af1f087c65916ae3185fde1e3de0569
parent4241197b40c0facd38a672eaf7594a01a091edae (diff)
[1.2.X] Ensure that the sitemaps test deactivates it's locale, so that subsequent tests aren't run in French.
Backport of r14078 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/sitemaps/tests/basic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/sitemaps/tests/basic.py b/django/contrib/sitemaps/tests/basic.py
index 80f336e50a..552fb3ca60 100644
--- a/django/contrib/sitemaps/tests/basic.py
+++ b/django/contrib/sitemaps/tests/basic.py
@@ -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"