def test_twoErrors(self):
        """
        Test that when two errors get logged, they both get reported as test
        errors.
        """
        test = self.MockTest('test_double')
        test(self.result)
        self.assertEqual(len(self.result.errors), 2)
        self.assertEqual(0, self.result.successes)

        Test that when two errors get logged, they both get reported as test
        errors.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_log.py