def _testRun(self, suite):
        """
        Run C{suite} and check the result.
        """
        result = reporter.TestResult()
        suite.run(result)
        self.assertEqual(5, result.successes)
        self.assertEqual(2, len(result.failures))

        Run C{suite} and check the result.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_doctest.py