(self)
| 71 | self.assertRaises(UnicodeError, func, source, scheme) |
| 72 | |
| 73 | def test_xmlcharrefreplace(self): |
| 74 | if self.has_iso10646: |
| 75 | self.skipTest('encoding contains full ISO 10646 map') |
| 76 | |
| 77 | s = "\u0b13\u0b23\u0b60 nd eggs" |
| 78 | self.assertEqual( |
| 79 | self.encode(s, "xmlcharrefreplace")[0], |
| 80 | b"ଓଣୠ nd eggs" |
| 81 | ) |
| 82 | |
| 83 | def test_customreplace_encode(self): |
| 84 | if self.has_iso10646: |
nothing calls this directly
no test coverage detected