

def test_pop(self):
    cache = LruCache(1)
    cache['key'] = 1
    self.assertEquals(cache.pop('key'), 1)
    self.assertEquals(cache.pop('key'), None)

dataset/ETHPy150Open matrix-org/synapse/tests/util/test_lrucache.py LruCacheTestCase.test_pop/original