def test_readUTF8Bytes(self) -> None:
    '\n        If the file being read from vends L{bytes}, strings decode from JSON as\n        UTF-8.\n        '
    with BytesIO(b'\x1e{"currency": "\xe2\x82\xac"}\n') as fileHandle:
        events = iter(eventsFromJSONLogFile(fileHandle))
        self.assertEqual(next(events), {'currency': '€'})
        self.assertRaises(StopIteration, next, events)
        self.assertEqual(len(self.errorEvents), 0)
If the file being read from vends L{bytes}, strings decode from JSON as
UTF-8.
def test_readUTF8Bytes(self) -> None:
    '\n        If the file being read from vends L{bytes}, strings decode from JSON as\n        UTF-8.\n        '
    with BytesIO(b'\x1e{"currency": "\xe2\x82\xac"}\n') as fileHandle:
        events = iter(eventsFromJSONLogFile(fileHandle))
        self.assertEqual(next(events), {'currency': '€'})
        self.assertRaises(StopIteration, next, events)
        self.assertEqual(len(self.errorEvents), 0)