MCPcopy
hub / github.com/dask/dask / test_fetch_range_with_headers

Function test_fetch_range_with_headers

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…