class_docstr: TestResult contains information useful for tracking test results
class_docstr_tok: ["TestResult","contains","information","useful","for","tracking","test","results"]
docstr: Returns number of publisher tests that failed
docstr_tok: ["Returns","number","of","publisher","tests","that","failed"]
code: def count_publisher_tests_passed(self):
      """Returns number of publisher tests that failed"""
      return sum(
          1
          for _, result in self._publication_results.items()
          if result["success"]
      )
  
imports: from collections import defaultdict
  import textwrap
  from streamalert.shared import rule
  from streamalert.shared.logger import get_logger
  from streamalert_cli.test.event import TestEvent
  from streamalert_cli.test.format import format_green, format_red, format_underline
label_desc: Use image node_id 23 for calling the TestResult obj's underlying member method code with example usage: obj.count_publisher_tests_passed() and returns: sum