class_docstr: Holder for test result information.
  
  Test results are automatically managed by the TestCase and TestSuite
  classes, and do not need to be explicitly manipulated by writers of tests.
  
  Each instance holds the total number of tests run, and collections of
  failures and errors that occurred among those test runs. The collections
  contain tuples of (testcase, exceptioninfo), where exceptioninfo is the
  formatted traceback of the error that occurred.
docstr: Tells whether or not this result was a success.
docstr_tok: ["Tells","whether","or","not","this","result","was","a","success","."]
code: def wasSuccessful(self):
      """Tells whether or not this result was a success."""
      # The hasattr check is for test_result's OldResult test.  That
      # way this method works on objects that lack the attribute.
      # (where would such result instances come from? old stored pickles?)
      return (len(self.failures) == len(self.errors) == 0) and (
          not hasattr(self, "unexpectedSuccesses")
          or len(self.unexpectedSuccesses) == 0
      )
  
imports: import io
  import sys
  import traceback
  from .None import util
  from functools import wraps
label_desc: Use image node_id 16 for calling the TestResult obj's underlying member method code with example usage: obj.wasSuccessful() and returns: unknown