(self)
| 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): |
nothing calls this directly
no test coverage detected