(fs, pathfn, compression, buffer_size, compressor)
| 1026 | ] |
| 1027 | ) |
| 1028 | def test_open_input_stream(fs, pathfn, compression, buffer_size, compressor): |
| 1029 | p = pathfn('open-input-stream') |
| 1030 | |
| 1031 | data = b'some data for reading\n' * 512 |
| 1032 | with fs.open_output_stream(p) as s: |
| 1033 | s.write(compressor(data)) |
| 1034 | |
| 1035 | with fs.open_input_stream(p, compression, buffer_size) as s: |
| 1036 | result = s.read() |
| 1037 | |
| 1038 | assert result == data |
| 1039 | |
| 1040 | |
| 1041 | def test_open_input_file(fs, pathfn): |
nothing calls this directly
no test coverage detected