39
39
cache = lru_cache.LRUCache(max_cache=10)
42
42
self.assertRaises(KeyError, cache.__getitem__, 'foo')
45
45
self.assertEqual('bar', cache['foo'])
50
50
# Make sure that we can properly map None as a key.
51
51
cache = lru_cache.LRUCache(max_cache=10)
54
54
self.assertEqual(1, cache[None])