class_docstr: Unit tests for InMemoryCacheStorageWrapper
class_docstr_tok: ["Unit","tests","for","InMemoryCacheStorageWrapper"]
docstr: Test that storage.set() sets value both in in-memory cache and
  in persist storage
docstr_tok: ["Test","that","storage.set","(",")","sets","value","both","in","in-memory","cache","and","in","persist","storage"]
code: def test_in_memory_cache_storage_wrapper_set(self):
      """
      Test that storage.set() sets value both in in-memory cache and
      in persist storage
      """
      context = self.get_storage_context()
      persist_storage = LocalDiskCacheStorage(context)
      wrapped_storage = InMemoryCacheStorageWrapper(
          persist_storage=persist_storage, context=context
      )
  
      persist_storage.set("some-key", b"some-value")
      with patch.object(
          persist_storage, "set", wraps=persist_storage.set
      ) as mock_persist_set:
          wrapped_storage.set("some-key", b"some-value")
          mock_persist_set.assert_called_once_with(
              "some-key", b"some-value"
          )
  
      self.assertEqual(wrapped_storage.get("some-key"), b"some-value")
  
file_path: streamlit/lib/tests/streamlit/runtime/caching/storage/in_memory_cache_storage_wrapper_test.py
imports: import unittest
  from unittest.mock import patch
  from testfixtures import TempDirectory
  from streamlit.runtime.caching.storage import CacheStorageContext, CacheStorageKeyNotFoundError
  from streamlit.runtime.caching.storage.dummy_cache_storage import DummyCacheStorage
  from streamlit.runtime.caching.storage.in_memory_cache_storage_wrapper import InMemoryCacheStorageWrapper
  from streamlit.runtime.caching.storage.local_disk_cache_storage import LocalDiskCacheStorage
label_desc: Use image node_id 8 for calling the InMemoryCacheStorageWrapperTest obj's underlying member method code with example usage: obj.test_in_memory_cache_storage_wrapper_set() without return types