def test_readUnseparated(self) -> None:
    '\n        Multiple events without a record separator are skipped.\n        '
    with StringIO('\x1e{"x": 1}\n{"y": 2}\n') as fileHandle:
        events = eventsFromJSONLogFile(fileHandle)
        self.assertRaises(StopIteration, next, events)
        self.assertEqual(len(self.errorEvents), 1)
        self.assertEqual(self.errorEvents[0]['log_format'], 'Unable to read JSON record: {record!r}')
        self.assertEqual(self.errorEvents[0]['record'], b'{"x": 1}\n{"y": 2}\n')
Multiple events without a record separator are skipped.
def test_readUnseparated(self) -> None:
    '\n        \n        '
    with StringIO('\x1e{"x": 1}\n{"y": 2}\n') as fileHandle:
        events = eventsFromJSONLogFile(fileHandle)
        self.assertRaises(StopIteration, next, events)
        self.assertEqual(len(self.errorEvents), 1)
        self.assertEqual(self.errorEvents[0]['log_format'], 'Unable to read JSON record: {record!r}')
        self.assertEqual(self.errorEvents[0]['record'], b'{"x": 1}\n{"y": 2}\n')