(self)
| 416 | b"This was read from a file.") |
| 417 | |
| 418 | def test_path_objects(self): |
| 419 | # If the source is a Path object, use it as a system ID and open it. |
| 420 | prep = prepare_input_source(FakePath(self.file)) |
| 421 | self.assertIsNone(prep.getCharacterStream()) |
| 422 | self.checkContent(prep.getByteStream(), |
| 423 | b"This was read from a file.") |
| 424 | |
| 425 | def test_binary_file(self): |
| 426 | # If the source is a binary file-like object, use it as a byte |
nothing calls this directly
no test coverage detected