def test_roundTrip(self) -> None:
    '\n        Data written by a L{FileLogObserver} returned by L{jsonFileLogObserver}\n        and read by L{eventsFromJSONLogFile} is reconstructed properly.\n        '
    event = dict(x=1)
    with StringIO() as fileHandle:
        observer = jsonFileLogObserver(fileHandle)
        observer(event)
        fileHandle.seek(0)
        events = eventsFromJSONLogFile(fileHandle)
        self.assertEqual(tuple(events), (event,))
        self.assertEqual(len(self.errorEvents), 0)
Data written by a L{FileLogObserver} returned by L{jsonFileLogObserver}
and read by L{eventsFromJSONLogFile} is reconstructed properly.
def test_roundTrip(self) -> None:
    '\n        Data written by a L{FileLogObserver} returned by L{jsonFileLogObserver}\n        and read by L{eventsFromJSONLogFile} is reconstructed properly.\n        '
    event = dict(x=1)
    with StringIO() as fileHandle:
        observer = jsonFileLogObserver(fileHandle)
        observer(event)
        fileHandle.seek(0)
        events = eventsFromJSONLogFile(fileHandle)
        self.assertEqual(tuple(events), (event,))
        self.assertEqual(len(self.errorEvents), 0)