(self)
| 392 | b"This is a byte stream.") |
| 393 | |
| 394 | def test_system_id(self): |
| 395 | # If the source is an InputSource that has neither a character |
| 396 | # stream nor a byte stream, open the system ID. |
| 397 | src = InputSource(self.file) |
| 398 | prep = prepare_input_source(src) |
| 399 | self.assertIsNone(prep.getCharacterStream()) |
| 400 | self.checkContent(prep.getByteStream(), |
| 401 | b"This was read from a file.") |
| 402 | |
| 403 | def test_string(self): |
| 404 | # If the source is a string, use it as a system ID and open it. |
nothing calls this directly
no test coverage detected