(self)
| 193 | self.check_parse(FakePath(TESTFN)) |
| 194 | |
| 195 | def test_parse_InputSource(self): |
| 196 | # accept data without declared but with explicitly specified encoding |
| 197 | make_xml_file(self.data, 'iso-8859-1', None) |
| 198 | with open(TESTFN, 'rb') as f: |
| 199 | input = InputSource() |
| 200 | input.setByteStream(f) |
| 201 | input.setEncoding('iso-8859-1') |
| 202 | self.check_parse(input) |
| 203 | |
| 204 | def test_parse_close_source(self): |
| 205 | builtin_open = open |
nothing calls this directly
no test coverage detected