MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_parse_text

Method test_parse_text

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

Source from the content-addressed store, hash-verified

135
136 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
137 def test_parse_text(self):
138 encodings = ('us-ascii', 'iso-8859-1', 'utf-8',
139 'utf-16', 'utf-16le', 'utf-16be')
140 for encoding in encodings:
141 self.check_parse(StringIO(xml_str(self.data, encoding)))
142 make_xml_file(self.data, encoding)
143 with open(TESTFN, 'r', encoding=encoding) as f:
144 self.check_parse(f)
145 self.check_parse(StringIO(self.data))
146 make_xml_file(self.data, encoding, None)
147 with open(TESTFN, 'r', encoding=encoding) as f:
148 self.check_parse(f)
149
150 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
151 def test_parse_bytes(self):

Callers

nothing calls this directly

Calls 5

check_parseMethod · 0.95
StringIOClass · 0.90
xml_strFunction · 0.85
make_xml_fileFunction · 0.85
openFunction · 0.50

Tested by

no test coverage detected