(self)
| 666 | self.assertEqual(f.read(), "spamspam") |
| 667 | |
| 668 | def test_badbom(self): |
| 669 | s = io.BytesIO(b"\xff\xff") |
| 670 | f = codecs.getreader(self.encoding)(s) |
| 671 | self.assertRaises(UnicodeDecodeError, f.read) |
| 672 | |
| 673 | s = io.BytesIO(b"\xff\xff\xff\xff") |
| 674 | f = codecs.getreader(self.encoding)(s) |
| 675 | self.assertRaises(UnicodeDecodeError, f.read) |
| 676 | |
| 677 | def test_partial(self): |
| 678 | self.check_partial( |
nothing calls this directly
no test coverage detected