MCPcopy Create free account
hub / github.com/dask/dask / test_fetch_range_with_headers

Function test_fetch_range_with_headers

dask/bytes/tests/test_http.py:87–95  ·  view source on GitHub ↗
(dir_server)

Source from the content-addressed store, hash-verified

85
86
87def 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])

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected