

def test_lru(self):
    cache = lru.LRUCache(1)
    cache['test'] = 'data we set'
    self.assertEquals(cache['test'], 'data we set')
    cache['test2'] = 'data we set'
    self.assertEquals(self['test2'], 'data we set')
    self.assertTrue(('test' not in cache))

dataset/ETHPy150Open lyft/confidant/tests/unit/confidant/lru_test.py LruTest.test_lru/VarMisuse@49/82 `cache`->`self`