def _printSummary(self):
        """
        Print a line summarising the test results to the stream, and color the
        status result.
        """
        summary = self._getSummary()
        if self.wasSuccessful():
            status = "PASSED"
            color = self.SUCCESS
        else:
            status = "FAILED"
            color = self.FAILURE
        self._colorizer.write(status, color)
        self._write("%s\n", summary)

        Print a line summarising the test results to the stream, and color the
        status result.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/reporter.py