class_docstr: Test ability to marshall Alert proto.
class_docstr_tok: ["Test","ability","to","marshall","Alert","proto","."]
docstr: Test that alert functions throw an exception when a non-emoji is given as an icon.
docstr_tok: ["Test","that","alert","functions","throw","an","exception","when","a","non-emoji","is","given","as","an","icon","."]
code: def test_st_alert_exceptions(self, alert_func):
      """Test that alert functions throw an exception when a non-emoji is given as an icon."""
      with self.assertRaises(StreamlitAPIException):
          alert_func("some alert", icon="hello world")
  
imports: from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Alert_pb2 import Alert
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling the AlertAPITest obj's underlying member method code with example usage: obj.test_st_alert_exceptions(alert_func) without return types