def test_is_pickleable(self):
    x = LRUCache(limit=10)
    x.update(luke=1, leia=2)
    y = pickle.loads(pickle.dumps(x))
    self.assertEqual(y.limit, y.limit)
    self.assertEqual(y, x)
def test_is_pickleable(self):
    x = LRUCache(limit=10)
    x.update(luke=1, leia=2)
    y = pickle.loads(pickle.dumps(x))
    self.assertEqual(y.limit, y.limit)
    self.assertEqual(y, x)