

def test_singleError(self):
    '\n        Test that a logged error gets reported as a test error.\n        '
    test = Mask.MockTest('test_single')
    test(self.result)
    self.assertEqual(len(self.result.errors), 1)
    self.assertTrue(self.result.errors[0][1].check(ZeroDivisionError), self.result.errors[0][1])

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_log.py LogErrors.test_singleError/original