

def test_error(self):
    '\n        Test that an observed error gets added to the result\n        '
    f = makeFailure()
    self.observer.gotEvent({
        'message': (),
        'time': time.time(),
        'isError': 1,
        'system': '-',
        'failure': f,
        'why': None,
    })
    self.assertEqual(f.observer.getErrors(), [f])

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_log.py TestObserver.test_error/VarMisuse@68/111 `self`->`f`