(self)
| 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 |
| 427 | # stream. |
| 428 | prep = prepare_input_source(self.make_byte_stream()) |
| 429 | self.assertIsNone(prep.getCharacterStream()) |
| 430 | self.checkContent(prep.getByteStream(), |
| 431 | b"This is a byte stream.") |
| 432 | |
| 433 | def test_text_file(self): |
| 434 | # If the source is a text file-like object, use it as a character |
nothing calls this directly
no test coverage detected