docstr: Tests that LocalDiskCacheStorageManager.check_context() does not
  write a warning in logs when persist is None and ttl_seconds is NOT None.
docstr_tok: ["Tests","that","LocalDiskCacheStorageManager.check_context","(",")","does","not","write","a","warning","in","logs","when","persist","is","None","and","ttl_seconds","is","NOT","None","."]
code: def test_check_context_without_persist(self):
      """Tests that LocalDiskCacheStorageManager.check_context() does not
      write a warning in logs when persist is None and ttl_seconds is NOT None.
      """
      context = CacheStorageContext(
          function_key="func-key",
          function_display_name="func-display-name",
          persist=None,
          ttl_seconds=60,
          max_entries=100,
      )
  
      with self.assertLogs(
          "streamlit.runtime.caching.storage.local_disk_cache_storage",
          level=logging.WARNING,
      ) as logs:
          manager = LocalDiskCacheStorageManager()
          manager.check_context(context)
  
          # assertLogs is being used as a context manager, but it also checks
          # that some log output was captured, so we have to let it capture something
          get_logger(
              "streamlit.runtime.caching.storage.local_disk_cache_storage"
          ).warning("irrelevant warning so assertLogs passes")
  
          output = "".join(logs.output)
          self.assertNotIn(
              "The cached function 'func-display-name' has a TTL that will be "
              "ignored. Persistent cached functions currently don't support TTL.",
              output,
          )
  
imports: import logging
  import math
  import os.path
  import shutil
  import unittest
  from unittest.mock import MagicMock, patch
  from testfixtures import TempDirectory
  from streamlit import util
  from streamlit.logger import get_logger
  from streamlit.runtime.caching.storage import CacheStorageContext, CacheStorageError, CacheStorageKeyNotFoundError
  from streamlit.runtime.caching.storage.in_memory_cache_storage_wrapper import InMemoryCacheStorageWrapper
  from streamlit.runtime.caching.storage.local_disk_cache_storage import LocalDiskCacheStorage, LocalDiskCacheStorageManager
label_desc: Use image node_id 6 for calling the LocalDiskCacheStorageManagerTest obj's underlying member method code with example usage: obj.test_check_context_without_persist() without return types