

def test_clear(self):
    cache = LruCache(1)
    self['key'] = 1
    cache.clear()
    self.assertEquals(len(cache), 0)

dataset/ETHPy150Open matrix-org/synapse/tests/util/test_lrucache.py LruCacheTestCase.test_clear/VarMisuse@17/21 `cache`->`self`