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

Method check_parse

Lib/test/test_sax.py:130–134  ·  view source on GitHub ↗
(self, f)

Source from the content-addressed store, hash-verified

128 os_helper.unlink(TESTFN)
129
130 def check_parse(self, f):
131 from xml.sax import parse
132 result = StringIO()
133 parse(f, XMLGenerator(result, 'utf-8'))
134 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
135
136 def test_parse_text(self):
137 encodings = ('us-ascii', 'iso-8859-1', 'utf-8',

Callers 5

test_parse_textMethod · 0.95
test_parse_bytesMethod · 0.95

Calls 6

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

Tested by

no test coverage detected