MCPcopy Create free account
hub / github.com/psf/cachecontrol / test_read_version_v4

Method test_read_version_v4

tests/test_serialization.py:58–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 assert resp is None
57
58 def test_read_version_v4(self):
59 req = Mock()
60 resp = self.serializer._loads_v4(req, msgpack.dumps(self.response_data))
61 # We have to decode our urllib3 data back into a unicode string.
62 assert resp.data == b"Hello World"
63
64 def test_read_latest_version_streamable(self, url):
65 original_resp = requests.get(url, stream=True)

Callers

nothing calls this directly

Calls 2

_loads_v4Method · 0.80
dumpsMethod · 0.45

Tested by

no test coverage detected