(self)
| 400 | b"This is a byte stream.") |
| 401 | |
| 402 | def test_system_id(self): |
| 403 | # If the source is an InputSource that has neither a character |
| 404 | # stream nor a byte stream, open the system ID. |
| 405 | src = InputSource(self.file) |
| 406 | prep = prepare_input_source(src) |
| 407 | self.assertIsNone(prep.getCharacterStream()) |
| 408 | self.checkContent(prep.getByteStream(), |
| 409 | b"This was read from a file.") |
| 410 | |
| 411 | def test_string(self): |
| 412 | # If the source is a string, use it as a system ID and open it. |
nothing calls this directly
no test coverage detected