class_docstr: Unit test for Google Test's list tests with output to file functionality.
    
code: def _TestOutput(self, test_format, expected_output):
      actual = self._GetOutput(test_format)
      actual_lines = actual.splitlines()
      expected_lines = expected_output.splitlines()
      line_count = 0
      for actual_line in actual_lines:
          expected_line = expected_lines[line_count]
          expected_line_re = re.compile(expected_line.strip())
          self.assertTrue(
              expected_line_re.match(actual_line.strip()),
              (
                  'actual output of "%s",\n'
                  'which does not match expected regex of "%s"\n'
                  "on line %d" % (actual, expected_output, line_count)
              ),
          )
          line_count = line_count + 1
  
file_path: infinity/third_party/googletest/googletest/test/gtest_list_output_unittest.py
imports: import os
  import re
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 4 for calling the GTestListTestsOutputUnitTest obj's underlying member method code with example usage: obj._TestOutput(test_format, expected_output) without return types