class_docstr: Unit test for Google Test's JSON output functionality.
class_docstr_tok: ["Unit","test","for","Google","Test","'s","JSON","output","functionality","."]
docstr: Checks the JSON output generated by the Google Test binary.
  
  Asserts that the JSON document generated by running the program
  gtest_prog_name matches expected_json, a string containing another
  JSON document.  Furthermore, the program's exit code must be
  expected_exit_code.
  
  Args:
    gtest_prog_name: Google Test binary name.
    expected: expected output.
    expected_exit_code: program's exit code.
    extra_args: extra arguments to binary invocation.
docstr_tok: ["Checks","the","JSON","output","generated","by","the","Google","Test","binary",".","Asserts","that","the","JSON","document","generated","by","running","the","program","gtest_prog_name","matches","expected_json",",","a","string","containing","another","JSON","document",".","Furthermore",",","the","program","'s","exit","code","must","be","expected_exit_code",".","Args",":","gtest_prog_name",":","Google","Test","binary","name",".","expected",":","expected","output",".","expected_exit_code",":","program","'s","exit","code",".","extra_args",":","extra","arguments","to","binary","invocation","."]
code: def _TestJsonOutput(
      self,
      gtest_prog_name,
      expected,
      expected_exit_code,
      extra_args=None,
  ):
      """Checks the JSON output generated by the Google Test binary.
  
      Asserts that the JSON document generated by running the program
      gtest_prog_name matches expected_json, a string containing another
      JSON document.  Furthermore, the program's exit code must be
      expected_exit_code.
  
      Args:
        gtest_prog_name: Google Test binary name.
        expected: expected output.
        expected_exit_code: program's exit code.
        extra_args: extra arguments to binary invocation.
      """
  
      actual = self._GetJsonOutput(
          gtest_prog_name, extra_args or [], expected_exit_code
      )
      self.assertEqual(
          expected, gtest_json_test_utils.normalize(actual)
      )
  
file_path: open-asset-importer/contrib/googletest/googletest/test/googletest-json-output-unittest.py
imports: import datetime
  import errno
  import json
  import os
  import re
  import sys
  from googletest.test import gtest_json_test_utils
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 7 for calling the GTestJsonOutputUnitTest obj's underlying member method code with example usage: obj._TestJsonOutput(gtest_prog_name, expected, expected_exit_code, extra_args) without return types