class_docstr: A test result class that can print formatted text results to a stream.
  
  Used by TextTestRunner.
class_docstr_tok: ["A","test","result","class","that","can","print","formatted","text","results","to","a","stream",".","Used","by","TextTestRunner","."]
code: def getDescription(self, test):
      doc_first_line = test.shortDescription()
      if self.descriptions and doc_first_line:
          return "\n".join((str(test), doc_first_line))
      else:
          return str(test)
  
imports: import sys
  import time
  import warnings
  from .None import result
  from .case import _SubTest
  from .signals import registerResult
label_desc: Use image node_id 2 for calling the TextTestResult obj's underlying member method code with example usage: obj.getDescription(test) and returns: str, str