def test_summaryColoredSuccess(self):
        """
        The summary in case of success should have a good count of successes
        and be colored properly.
        """
        self.result.addSuccess(self.test)
        self.result.done()
        self.assertEqual(self.log[1], (self.result.SUCCESS, 'PASSED'))
        self.assertEqual(
            self.stream.getvalue().splitlines()[-1].strip(), "(successes=1)")

        The summary in case of success should have a good count of successes
        and be colored properly.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_reporter.py