Made miscellaneous code cleanups

This commit is contained in:
Dmitry Dygalo 2016-07-21 10:28:40 +02:00 committed by Markus Holtermann
parent a05d86a69a
commit ca32979cdc
No known key found for this signature in database
GPG key ID: AFE79D68D41C7E39
6 changed files with 11 additions and 12 deletions

View file

@ -560,7 +560,7 @@ class BaseCacheTests(object):
# Count how many keys are left in the cache.
for i in range(1, initial_count):
if cull_cache.has_key('cull%d' % i):
count = count + 1
count += 1
self.assertEqual(count, final_count)
def test_cull(self):