| 12 | |
| 13 | class 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" |