Commits

Steve Schwarz committed 35ceb74

Fixed existing tests

Comments (0)

Files changed (1)

localeurl/tests/__init__.py

         TEMPLATE_CONTEXT_PROCESSORS = (
             'django.core.context_processors.i18n',
         ),
+        PREFIX_DEFAULT_LOCALE = True,
     )
 
 
         r2 = self.middleware.process_request(r1)
         self.assertEqual(301, r2.status_code)
         self.assertEqual('/en/test/', r2['Location'])
-        
+
     def test_with_query_string(self):
         r1 = self.request_factory.get('/test/?somevar=someval')
         r2 = self.middleware.process_request(r1)
         super(NoDefaultPrefixMiddlewareTestCase, self).setUp()
         self.settings_manager.set(PREFIX_DEFAULT_LOCALE=False)
         reload(localeurl_settings)
-        
+
     def test_default_locale(self):
         r1 = self.request_factory.get('/test/foo/')
         r2 = self.middleware.process_request(r1)
         from django.contrib.sites.models import Site
         self._orig_get_current = Site.objects.get_current
         Site.objects.get_current = lambda: DummySite()
-    
+
     def test_localeurl_sitemap(self):
         sitemap = DummySitemap('fr')
         self.assertEqual(sitemap.get_urls()[0]['location'],