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

Method test_parseString_text

Lib/test/test_sax.py:225–230  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

223 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
224
225 def test_parseString_text(self):
226 encodings = ('us-ascii', 'iso-8859-1', 'utf-8',
227 'utf-16', 'utf-16le', 'utf-16be')
228 for encoding in encodings:
229 self.check_parseString(xml_str(self.data, encoding))
230 self.check_parseString(self.data)
231
232 def test_parseString_bytes(self):
233 # UTF-8 is default encoding, US-ASCII is compatible with UTF-8,

Callers

nothing calls this directly

Calls 2

check_parseStringMethod · 0.95
xml_strFunction · 0.85

Tested by

no test coverage detected