class_docstr: Tests the env variable or the command line flag for fail_fast.
class_docstr_tok: ["Tests","the","env","variable","or","the","command","line","flag","for","fail_fast","."]
code: def testEventListener(self):
      txt, _ = RunAndReturnOutput(
          test_suite="HasSkipTest", fail_fast=True
      )
      self.assertIn("1 FAILED TEST", txt)
      self.assertIn("[  SKIPPED ] 3 tests", txt)
      for expected_count, callback in [
          (1, "OnTestSuiteStart"),
          (5, "OnTestStart"),
          (5, "OnTestEnd"),
          (5, "OnTestPartResult"),
          (1, "OnTestSuiteEnd"),
      ]:
          self.assertEqual(
              expected_count,
              txt.count(callback),
              "Expected %d calls to callback %s match count on output: %s "
              % (expected_count, callback, txt),
          )
  
      txt, _ = RunAndReturnOutput(
          test_suite="HasSkipTest", fail_fast=False
      )
      self.assertIn("3 FAILED TEST", txt)
      self.assertIn("[  SKIPPED ] 1 test", txt)
      for expected_count, callback in [
          (1, "OnTestSuiteStart"),
          (5, "OnTestStart"),
          (5, "OnTestEnd"),
          (5, "OnTestPartResult"),
          (1, "OnTestSuiteEnd"),
      ]:
          self.assertEqual(
              expected_count,
              txt.count(callback),
              "Expected %d calls to callback %s match count on output: %s "
              % (expected_count, callback, txt),
          )
  
imports: import os
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 7 for calling the GTestFailFastUnitTest obj's underlying member method code with example usage: obj.testEventListener() without return types