def test_reasons(self):
        """
        Test methods which raise L{unittest.SkipTest} or have their C{skip}
        attribute set to something are skipped.
        """
        self.suite(self.reporter)
        expectedReasons = ['class', 'skip2', 'class', 'class']
        # whitebox reporter
        reasonsGiven = [reason for test, reason in self.reporter.skips]
        self.assertEqual(expectedReasons, reasonsGiven)

        Test methods which raise L{unittest.SkipTest} or have their C{skip}
        attribute set to something are skipped.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_tests.py