From 03e7d64de48dd1622e90c6d5fc0cd6abe25f0be8 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 9 Oct 2010 14:36:18 +0000 Subject: [PATCH] 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 --- django/contrib/sitemaps/tests/basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/contrib/sitemaps/tests/basic.py b/django/contrib/sitemaps/tests/basic.py index 80f336e50aa..552fb3ca600 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, '0.5') self.assertContains(response, '%s' % date.today().strftime('%Y-%m-%d')) + deactivate() def test_generic_sitemap(self): "A minimal generic sitemap can be rendered"