docstr: For all other page_config icon inputs, we just call image_to_url.
docstr_tok: ["For","all","other","page_config","icon","inputs",",","we","just","call","image_to_url","."]
code: def test_set_page_config_icon_calls_image_to_url(
      self, icon: PageIcon
  ):
      """For all other page_config icon inputs, we just call image_to_url."""
      with mock.patch(
          "streamlit.commands.page_config.image.image_to_url",
          return_value="https://mock.url",
      ):
          st.set_page_config(page_icon=icon)
          c = self.get_message_from_queue().page_config_changed
          self.assertEqual(c.favicon, "https://mock.url")
  
imports: from unittest import mock
  from parameterized import param, parameterized
  import streamlit
  from streamlit.commands.page_config import ENG_EMOJIS, RANDOM_EMOJIS, PageIcon, valid_url
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.PageConfig_pb2 import PageConfig
  from streamlit.string_util import is_emoji
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 5 for calling the PageConfigTest obj's underlying member method code with example usage: obj.test_set_page_config_icon_calls_image_to_url(icon) without return types