279
300
self.assertEqual(int(cache._max_size*0.8), cache._after_cleanup_size)
280
301
self.assertEqual(0, cache._value_size)
305
self.assertRaises(ValueError, cache.add, lru_cache._null_key, 1)
282
307
def test_add_tracks_size(self):
283
308
cache = lru_cache.LRUSizeCache()
284
309
self.assertEqual(0, cache._value_size)