def test_summary(self):
        """
        The summary of a successful run with skips indicates that the test
        suite passed and includes the number of skips.
        """
        self.result.addSkip(self.test, 'some reason')
        self.result.done()
        output = self.stream.getvalue().splitlines()[-1]
        prefix = 'PASSED '
        self.assertTrue(output.startswith(prefix))
        self.assertEqual(output[len(prefix):].strip(), '(skips=1)')

        The summary of a successful run with skips indicates that the test
        suite passed and includes the number of skips.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_reporter.py