(self)
| 2223 | self.assertEqual(expected, f.read()) |
| 2224 | |
| 2225 | def test_manual_content_length(self): |
| 2226 | # Set an incorrect content-length so that we can verify that |
| 2227 | # it will not be over-ridden by the library. |
| 2228 | self.conn.request("PUT", "/url", "body", |
| 2229 | {"Content-Length": "42"}) |
| 2230 | message, f = self.get_headers_and_fp() |
| 2231 | self.assertEqual("42", message.get("content-length")) |
| 2232 | self.assertEqual(4, len(f.read())) |
| 2233 | |
| 2234 | def test_ascii_body(self): |
| 2235 | self.conn.request("PUT", "/url", "body") |
nothing calls this directly
no test coverage detected