def test_readEventsAutoWithRecordSeparator(self):
        """
        L{eventsFromJSONLogFile} reads events from a file and automatically
        detects use of C{u"\\x1e"} as the record separator.
        """
        with StringIO(
            u'\x1e{"x": 1}\n'
            u'\x1e{"y": 2}\n'
        ) as fileHandle:
            self._readEvents(fileHandle)
            self.assertEqual(len(self.errorEvents), 0)

        L{eventsFromJSONLogFile} reads events from a file and automatically
        detects use of C{u"\x1e"} as the record separator.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/logger/test/test_json.py