MCPcopy Index your code
hub / github.com/python/cpython / test_xmlcharrefreplace

Method test_xmlcharrefreplace

Lib/test/multibytecodec_support.py:73–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 3

skipTestMethod · 0.80
assertEqualMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected