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

Method setup_method

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

Source from the content-addressed store, hash-verified

12
13class TestSerializer:
14 def setup_method(self):
15 self.serializer = Serializer()
16 self.response_data = {
17 "response": {
18 # Encode the body as bytes b/c it will eventually be
19 # converted back into a BytesIO object.
20 "body": b"Hello World",
21 "headers": {
22 "Content-Type": "text/plain",
23 "Expires": "87654",
24 "Cache-Control": "public",
25 },
26 "status": 200,
27 "version": 11,
28 "reason": "",
29 "strict": True,
30 "decode_content": True,
31 }
32 }
33
34 def test_load_by_version_v0(self):
35 data = b"cc=0,somedata"

Callers

nothing calls this directly

Calls 1

SerializerClass · 0.90

Tested by

no test coverage detected