def test_cache_maps_to_state(self):
        cache = PersistentCache('bla')
        cache[1] = 'foo'
        self.assertIn(cache.KEY_PREFIX + 'bla', state)
        self.assertIn(1, state[cache.KEY_PREFIX + 'bla'])
        self.assertEqual(state[cache.KEY_PREFIX + 'bla'][1], 'foo')
Test if the persistent cache maps correctly to an entry in the state
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_persistent_memoize.py/TestPersistentMemoize.test_cache_maps_to_state