

def test_flush(self):
    '\n        Check that flushing the observer with no args removes all errors.\n        '
    self.test_error()
    flushed = self.observer.flushErrors()
    self.assertEqual(self.observer.getErrors(), [])
    self.assertEqual(len(flushed), 1)
    self.assertTrue(flushed[0].check(ZeroDivisionError))

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