Fixed a test isolation problem that remained after r17042.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17043 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Aymeric Augustin 2011-10-27 06:17:24 +00:00
parent 0cf139d201
commit a693bbe0ac
1 changed files with 2 additions and 0 deletions

View File

@ -1233,6 +1233,8 @@ class CacheI18nTest(TestCase):
translation.activate('es') translation.activate('es')
get_cache_data = FetchFromCacheMiddleware().process_request(request) get_cache_data = FetchFromCacheMiddleware().process_request(request)
self.assertEqual(get_cache_data.content, es_message) self.assertEqual(get_cache_data.content, es_message)
# reset the language
translation.deactivate()
CacheI18nTest = override_settings( CacheI18nTest = override_settings(
CACHE_MIDDLEWARE_KEY_PREFIX='settingsprefix', CACHE_MIDDLEWARE_KEY_PREFIX='settingsprefix',