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

Method check_parseString

Lib/test/test_sax.py:219–223  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

217 self.assertTrue(fileobj.closed)
218
219 def check_parseString(self, s):
220 from xml.sax import parseString
221 result = StringIO()
222 parseString(s, XMLGenerator(result, 'utf-8'))
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',

Callers 2

test_parseString_textMethod · 0.95

Calls 6

getvalueMethod · 0.95
StringIOClass · 0.90
parseStringFunction · 0.90
XMLGeneratorClass · 0.90
xml_strFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected