(self)
| 408 | b"This was read from a file.") |
| 409 | |
| 410 | def test_path_objects(self): |
| 411 | # If the source is a Path object, use it as a system ID and open it. |
| 412 | prep = prepare_input_source(FakePath(self.file)) |
| 413 | self.assertIsNone(prep.getCharacterStream()) |
| 414 | self.checkContent(prep.getByteStream(), |
| 415 | b"This was read from a file.") |
| 416 | |
| 417 | def test_binary_file(self): |
| 418 | # If the source is a binary file-like object, use it as a byte |
nothing calls this directly
no test coverage detected