(dir_server)
| 85 | |
| 86 | |
| 87 | def test_fetch_range_with_headers(dir_server): |
| 88 | # https://github.com/dask/dask/issues/4479 |
| 89 | fn = files[0] |
| 90 | headers = {"Date": "Wed, 21 Oct 2015 07:28:00 GMT"} |
| 91 | f = open_files(root + fn, headers=headers)[0] |
| 92 | with f as f: |
| 93 | data = f.read(length=1) + f.read(length=-1) |
| 94 | with open(os.path.join(dir_server, fn), "rb") as expected: |
| 95 | assert data == expected.read() |
| 96 | |
| 97 | |
| 98 | @pytest.mark.parametrize("block_size", [None, 99999]) |