'L{eventsFromJSONLogFile} reads events from a file and automatically
detects use of C{u"\x1e"} as the record separator.'

def test_readEventsAutoWithRecordSeparator(self):

    with StringIO(u'\x1e{"x":    1}\n\x1e{"y":    2}\n') as fileHandle:
        self._readEvents(fileHandle)
        self.assertEqual(len(self.errorEvents), 0)
