

def test_get_set(self):
    cache = LruCache(1)
    cache['key'] = 'value'
    self.assertEquals(cache.get('key'), 'value')
    self.assertEquals(self['key'], 'value')

dataset/ETHPy150Open matrix-org/synapse/tests/util/test_lrucache.py LruCacheTestCase.test_get_set/VarMisuse@42/57 `cache`->`self`