class_docstr: Unit tests for InMemoryCacheStorageWrapper
class_docstr_tok: ["Unit","tests","for","InMemoryCacheStorageWrapper"]
docstr: Test that storage.get() returns the value from in_memory storage
  if value exists in memory.
docstr_tok: ["Test","that","storage.get","(",")","returns","the","value","from","in_memory","storage","if","value","exists","in","memory","."]
code: def test_in_memory_cache_storage_wrapper_get_key_in_memory_storage(
      self,
  ):
      """
      Test that storage.get() returns the value from in_memory storage
      if value exists in memory.
      """
      context = self.get_storage_context()
      persist_storage = LocalDiskCacheStorage(context)
      wrapped_storage = InMemoryCacheStorageWrapper(
          persist_storage=persist_storage, context=context
      )
  
      wrapped_storage.set("some-key", b"some-value")
  
      with patch.object(
          persist_storage, "get", wraps=persist_storage.get
      ) as mock_persist_get:
          self.assertEqual(
              wrapped_storage.get("some-key"), b"some-value"
          )
          mock_persist_get.assert_not_called()
  
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 7 for calling the InMemoryCacheStorageWrapperTest obj's underlying member method code with example usage: obj.test_in_memory_cache_storage_wrapper_get_key_in_memory_storage() without return types