def test_loadFailure(self):
        """
        Loading a test that fails and getting the result of it ends up with one
        test ran and one failure.
        """
        suite = self.loader.loadByName(
            "twisted.trial.test.erroneous.TestRegularFail.test_fail")
        result = reporter.TestResult()
        suite.run(result)
        self.assertEqual(result.testsRun, 1)
        self.assertEqual(len(result.failures), 1)

        Loading a test that fails and getting the result of it ends up with one
        test ran and one failure.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_loader.py