(self)
| 778 | self.assertEqual(raw.decode('utf-16le', 'replace'), expected) |
| 779 | |
| 780 | def test_nonbmp(self): |
| 781 | self.assertEqual("\U00010203".encode(self.encoding), |
| 782 | b'\x00\xd8\x03\xde') |
| 783 | self.assertEqual(b'\x00\xd8\x03\xde'.decode(self.encoding), |
| 784 | "\U00010203") |
| 785 | |
| 786 | class UTF16BETest(ReadTest, unittest.TestCase): |
| 787 | encoding = "utf-16-be" |
nothing calls this directly
no test coverage detected