def checkEvents(logEvents: Sequence[LogEvent]) -> None:
    self.assertEqual(len(logEvents), 1)
    [failureEvent] = logEvents
    self.assertIn('log_failure', failureEvent)
    failureObject = failureEvent['log_failure']
    self.assertIsInstance(failureObject, Failure)
    tracebackObject = failureObject.getTracebackObject()
    self.assertEqual(tracebackObject.tb_frame.f_code.co_filename.rstrip('co'), __file__.rstrip('co'))
def checkEvents(logEvents: Sequence[LogEvent]) -> None:
    self.assertEqual(len(logEvents), 1)
    [failureEvent] = logEvents
    self.assertIn('log_failure', failureEvent)
    failureObject = failureEvent['log_failure']
    self.assertIsInstance(failureObject, Failure)
    tracebackObject = failureObject.getTracebackObject()
    self.assertEqual(tracebackObject.tb_frame.f_code.co_filename.rstrip('co'), __file__.rstrip('co'))