class_docstr: TestEventFile handles caching results of test events within a test file
class_docstr_tok: ["TestEventFile","handles","caching","results","of","test","events","within","a","test","file"]
code: def __str__(self):
      output = [
          format_underline(
              "\nFile: {file_name}\n".format(file_name=self._full_path)
          )
      ]
  
      if self.error:
          output.append(format_red(self.error))
      else:
          for result in self._results:
              output.append(result)
  
      return "\n".join(str(item) for item in output)
  
file_path: streamalert/streamalert_cli/test/event_file.py
imports: import json
  from streamalert.shared.logger import get_logger
  from streamalert_cli.test.results import TestResult
  from streamalert_cli.test.format import format_red, format_underline
label_desc: Use image node_id 3 for calling the TestEventFile obj's underlying member method code with example usage: obj.__str__() and returns: str