code: def test_check_document(self):
      pkg_info, dist = self.create_dist()
      cmd = check(dist)
  
      # let's see if it detects broken rest
      broken_rest = "title\n===\n\ntest"
      msgs = cmd._check_rst_data(broken_rest)
      self.assertEqual(len(msgs), 1)
  
      # and non-broken rest
      rest = "title\n=====\n\ntest"
      msgs = cmd._check_rst_data(rest)
      self.assertEqual(len(msgs), 0)
  
file_path: catboost/contrib/tools/python/src/Lib/distutils/tests/test_check.py
imports: import textwrap
  import unittest
  from test.test_support import run_unittest
  from distutils.command.check import check, HAS_DOCUTILS
  from distutils.tests import support
  from distutils.errors import DistutilsSetupError
label_desc: Use image node_id 3 for calling the CheckTestCase obj's underlying member method code with example usage: obj.test_check_document() without return types