def test_update_expires(self):
    limit = 100
    x = LRUCache(limit=limit)
    slots = list(range((limit * 2)))
    for i in slots:
        x.update({i: i})
    self.assertListEqual(list(x.keys()), list(slots[limit:]))
def test_update_expires(self):
    limit = 100
    x = LRUCache(limit=limit)
    slots = list(range((limit * 2)))
    for i in slots:
        x.update({i: i})
    self.assertListEqual(list(x.keys()), list(slots[limit:]))