(fs, pathfn, compression, buffer_size,
decompressor)
| 1075 | ] |
| 1076 | ) |
| 1077 | def test_open_output_stream(fs, pathfn, compression, buffer_size, |
| 1078 | decompressor): |
| 1079 | p = pathfn('open-output-stream') |
| 1080 | |
| 1081 | data = b'some data for writing' * 1024 |
| 1082 | with fs.open_output_stream(p, compression, buffer_size) as f: |
| 1083 | f.write(data) |
| 1084 | |
| 1085 | with fs.open_input_stream(p, compression, buffer_size) as f: |
| 1086 | assert f.read(len(data)) == data |
| 1087 | |
| 1088 | |
| 1089 | @pytest.mark.gzip |
nothing calls this directly
no test coverage detected