def test_expires(self):
    limit = 100
    x = LRUCache(limit=limit)
    slots = list(range((limit * 2)))
    for i in slots:
        x[i] = i
    self.assertListEqual(list(x.keys()), list(slots[limit:]))
    self.assertTrue(x.items())
    self.assertTrue(x.values())
def test_expires(self):
    limit = 100
    x = LRUCache(limit=limit)
    slots = list(range((limit * 2)))
    for i in slots:
        x[i] = i
    self.assertListEqual(list(x.keys()), list(slots[limit:]))
    self.assertTrue(x.items())
    self.assertTrue(x.values())