class_docstr: Unit tests for InMemoryCacheStorageWrapper
class_docstr_tok: ["Unit","tests","for","InMemoryCacheStorageWrapper"]
docstr: Test that storage.close() closes the underlying persist storage
docstr_tok: ["Test","that","storage.close","(",")","closes","the","underlying","persist","storage"]
code: def test_in_memory_cache_storage_wrapper_close(self):
      """
      Test that storage.close() closes the underlying persist storage
      """
      context = self.get_storage_context()
      persist_storage = LocalDiskCacheStorage(context)
      wrapped_storage = InMemoryCacheStorageWrapper(
          persist_storage=persist_storage, context=context
      )
  
      with patch.object(
          persist_storage, "close", wraps=persist_storage.close
      ) as mock_persist_close:
          wrapped_storage.close()
          mock_persist_close.assert_called_once()
  
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 10 for calling the InMemoryCacheStorageWrapperTest obj's underlying member method code with example usage: obj.test_in_memory_cache_storage_wrapper_close() without return types