class_docstr: Unit test for Google Test's JSON output functionality.
class_docstr_tok: ["Unit","test","for","Google","Test","'s","JSON","output","functionality","."]
docstr: Verifies that no JSON output is generated.
  
  Tests that no JSON file is generated if the default JSON listener is
  shut down before RUN_ALL_TESTS is invoked.
docstr_tok: ["Verifies","that","no","JSON","output","is","generated",".","Tests","that","no","JSON","file","is","generated","if","the","default","JSON","listener","is","shut","down","before","RUN_ALL_TESTS","is","invoked","."]
code: def testSuppressedJsonOutput(self):
      """Verifies that no JSON output is generated.
  
      Tests that no JSON file is generated if the default JSON listener is
      shut down before RUN_ALL_TESTS is invoked.
      """
  
      json_path = os.path.join(
          gtest_test_utils.GetTempDir(), GTEST_PROGRAM_NAME + "out.json"
      )
      if os.path.isfile(json_path):
          os.remove(json_path)
  
      command = [
          GTEST_PROGRAM_PATH,
          "%s=json:%s" % (GTEST_OUTPUT_FLAG, json_path),
          "--shut_down_xml",
      ]
      p = gtest_test_utils.Subprocess(command)
      if p.terminated_by_signal:
          # p.signal is available only if p.terminated_by_signal is True.
          self.assertFalse(
              p.terminated_by_signal,
              "%s was killed by signal %d"
              % (GTEST_PROGRAM_NAME, p.signal),
          )
      else:
          self.assertTrue(p.exited)
          self.assertEqual(
              1,
              p.exit_code,
              "'%s' exited with code %s, which doesn't match "
              "the expected exit code %s." % (command, p.exit_code, 1),
          )
  
      self.assertTrue(not os.path.isfile(json_path))
  
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 4 for calling the GTestJsonOutputUnitTest obj's underlying member method code with example usage: obj.testSuppressedJsonOutput() without return types