def _readEvents(self, inFile: IO[Any], recordSeparator: Optional[str]=None, bufferSize: int=4096) -> None:
    '\n        Test that L{eventsFromJSONLogFile} reads two pre-defined events from a\n        file: C{{"x": 1}} and C{{"y": 2}}.\n\n        @param inFile: C{inFile} argument to L{eventsFromJSONLogFile}\n        @param recordSeparator: C{recordSeparator} argument to\n            L{eventsFromJSONLogFile}\n        @param bufferSize: C{bufferSize} argument to L{eventsFromJSONLogFile}\n        '
    events = iter(eventsFromJSONLogFile(inFile, recordSeparator, bufferSize))
    self.assertEqual(next(events), {'x': 1})
    self.assertEqual(next(events), {'y': 2})
    self.assertRaises(StopIteration, next, events)
Test that L{eventsFromJSONLogFile} reads two pre-defined events from a
file: C{{"x": 1}} and C{{"y": 2}}.

@param inFile: C{inFile} argument to L{eventsFromJSONLogFile}
@param recordSeparator: C{recordSeparator} argument to
    L{eventsFromJSONLogFile}
@param bufferSize: C{bufferSize} argument to L{eventsFromJSONLogFile}
def _readEvents(self, inFile: IO[Any], recordSeparator: Optional[str]=None, bufferSize: int=4096) -> None:
    '\n        Test that L{eventsFromJSONLogFile} reads two pre-defined events from a\n        file: C{{"x": 1}} and C{{"y": 2}}.\n\n        @param inFile: C{inFile} argument to L{eventsFromJSONLogFile}\n        @param recordSeparator: C{recordSeparator} argument to\n            L{eventsFromJSONLogFile}\n        @param bufferSize: C{bufferSize} argument to L{eventsFromJSONLogFile}\n        '
    events = iter(eventsFromJSONLogFile(inFile, recordSeparator, bufferSize))
    self.assertEqual(next(events), {'x': 1})
    self.assertEqual(next(events), {'y': 2})
    self.assertRaises(StopIteration, next, events)