(self)
| 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 |
| 419 | # stream. |
| 420 | prep = prepare_input_source(self.make_byte_stream()) |
| 421 | self.assertIsNone(prep.getCharacterStream()) |
| 422 | self.checkContent(prep.getByteStream(), |
| 423 | b"This is a byte stream.") |
| 424 | |
| 425 | def test_text_file(self): |
| 426 | # If the source is a text file-like object, use it as a character |
nothing calls this directly
no test coverage detected