summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-11 07:25:14 -0400
committerTim Graham <timograham@gmail.com>2013-10-11 07:25:14 -0400
commitb67ab75e82ec59dd4eeca119eeaf570d7c88556c (patch)
tree45bb072d08b4d7de7e6b76bf01fcd9bddcb43acd /tests/cache
parent695bc0d191c126a948a7cf3acc3e37d9377ebd20 (diff)
Fixed assorted flake8 errors.
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index d46c61df67..6912e8f755 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -149,7 +149,7 @@ class DummyCacheTests(unittest.TestCase):
'ascii': 'ascii_value',
'unicode_ascii': 'Iñtërnâtiônàlizætiøn1',
'Iñtërnâtiônàlizætiøn': 'Iñtërnâtiônàlizætiøn2',
- 'ascii2': {'x' : 1 }
+ 'ascii2': {'x' : 1}
}
for (key, value) in stuff.items():
self.cache.set(key, value)
@@ -434,7 +434,7 @@ class BaseCacheTests(object):
it is an absolute expiration timestamp instead of a relative
offset. Test that we honour this convention. Refs #12399.
'''
- self.cache.set('key1', 'eggs', 60*60*24*30 + 1) #30 days + 1 second
+ self.cache.set('key1', 'eggs', 60*60*24*30 + 1) # 30 days + 1 second
self.assertEqual(self.cache.get('key1'), 'eggs')
self.cache.add('key2', 'ham', 60*60*24*30 + 1)
@@ -1432,7 +1432,7 @@ class CacheI18nTest(TestCase):
self.assertEqual(key, key2)
@override_settings(USE_I18N=False, USE_L10N=False)
- def test_cache_key_no_i18n (self):
+ def test_cache_key_no_i18n(self):
request = self._get_request()
lang = translation.get_language()
tz = force_text(timezone.get_current_timezone_name(), errors='ignore')