docstr: Test that ExceptionProtos for StreamlitAPIExceptions (and
  subclasses) have the "message_is_markdown" flag set.
docstr_tok: ["Test","that","ExceptionProtos","for","StreamlitAPIExceptions","(","and","subclasses",")","have","the","``","message_is_markdown","''","flag","set","."]
code: def test_markdown_flag(self):
      """Test that ExceptionProtos for StreamlitAPIExceptions (and
      subclasses) have the "message_is_markdown" flag set.
      """
      proto = ExceptionProto()
      exception.marshall(proto, RuntimeError("oh no!"))
      self.assertFalse(proto.message_is_markdown)
  
      proto = ExceptionProto()
      exception.marshall(proto, StreamlitAPIException("oh no!"))
      self.assertTrue(proto.message_is_markdown)
  
      proto = ExceptionProto()
      exception.marshall(proto, errors.DuplicateWidgetID("oh no!"))
      self.assertTrue(proto.message_is_markdown)
  
imports: import os
  import unittest
  from parameterized import parameterized
  import streamlit
  from streamlit import errors
  from streamlit.elements import exception
  from streamlit.elements.exception import _GENERIC_UNCAUGHT_EXCEPTION_TEXT, _format_syntax_error_message
  from streamlit.errors import StreamlitAPIException, UncaughtAppException
  from streamlit.proto.Exception_pb2 import Exception
  from tests import testutil
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 2 for calling the ExceptionProtoTest obj's underlying member method code with example usage: obj.test_markdown_flag() without return types