Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…uent tests aren't run in French.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 03e7d64de48dd1622e90c6d5fc0cd6abe25f0be8 1 parent 0500105
Russell Keith-Magee authored October 09, 2010

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/contrib/sitemaps/tests/basic.py
3  django/contrib/sitemaps/tests/basic.py
@@ -5,7 +5,7 @@
5 5
 from django.contrib.sites.models import Site
6 6
 from django.test import TestCase
7 7
 from django.utils.formats import localize
8  
-from django.utils.translation import activate
  8
+from django.utils.translation import activate, deactivate
9 9
 
10 10
 
11 11
 class SitemapTests(TestCase):
@@ -44,6 +44,7 @@ def test_localized_priority(self):
44 44
         response = self.client.get('/simple/sitemap.xml')
45 45
         self.assertContains(response, '<priority>0.5</priority>')
46 46
         self.assertContains(response, '<lastmod>%s</lastmod>' % date.today().strftime('%Y-%m-%d'))
  47
+        deactivate()
47 48
 
48 49
     def test_generic_sitemap(self):
49 50
         "A minimal generic sitemap can be rendered"

0 notes on commit 03e7d64

Please sign in to comment.
Something went wrong with that request. Please try again.