code: def test_msg_wraps(self):
      buf = StringIO()
      with mock.patch("sys.stdout", buf), mock.patch(
          "alembic.util.messaging.TERMWIDTH", 10
      ):
          msg("AAAAAAAAAAAAAAAAA")
      eq_(
          str(buf.getvalue()).splitlines(),
          [
              "  AAAAAAAA",  # initial indent 10 chars before wrapping
              "  AAAAAAAA",  # subsequent indent 10 chars before wrapping
              "  A",  # subsequent indent with remainining chars
          ],
      )
  
file_path: alembic/tests/test_messaging.py
imports: from io import StringIO
  from alembic.testing import eq_
  from alembic.testing import mock
  from alembic.testing.fixtures import TestBase
  from alembic.util.messaging import msg
  from alembic.util.messaging import obfuscate_url_pw
label_desc: Use image node_id 1 for calling the MessagingTest obj's underlying member method code with example usage: obj.test_msg_wraps() without return types