class_docstr: Test ability to marshall slider protos.
class_docstr_tok: ["Test","ability","to","marshall","slider","protos","."]
code: def test_value_out_of_bounds(self):
      # Max int
      with pytest.raises(StreamlitAPIException) as exc:
          max_value = JSNumber.MAX_SAFE_INTEGER + 1
          st.slider("Label", max_value=max_value)
      self.assertEqual(
          "`max_value` (%s) must be <= (1 << 53) - 1" % str(max_value),
          str(exc.value),
      )
  
      # Min int
      with pytest.raises(StreamlitAPIException) as exc:
          min_value = JSNumber.MIN_SAFE_INTEGER - 1
          st.slider("Label", min_value=min_value)
      self.assertEqual(
          "`min_value` (%s) must be >= -((1 << 53) - 1)"
          % str(min_value),
          str(exc.value),
      )
  
      # Max float
      with pytest.raises(StreamlitAPIException) as exc:
          max_value = 2e308
          st.slider("Label", value=0.5, max_value=max_value)
      self.assertEqual(
          "`max_value` (%s) must be <= 1.797e+308" % str(max_value),
          str(exc.value),
      )
  
      # Min float
      with pytest.raises(StreamlitAPIException) as exc:
          min_value = -2e308
          st.slider("Label", value=0.5, min_value=min_value)
      self.assertEqual(
          "`min_value` (%s) must be >= -1.797e+308" % str(min_value),
          str(exc.value),
      )
  
imports: from datetime import date, datetime, time, timedelta, timezone
  from unittest.mock import MagicMock, patch
  import numpy
  import pytest
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.js_number import JSNumber
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.testing.v1.app_test import AppTest
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 11 for calling the SliderTest obj's underlying member method code with example usage: obj.test_value_out_of_bounds() without return types