(self)
| 334 | self._test_request(request_object, expected_curl_command) |
| 335 | |
| 336 | def test_post(self): |
| 337 | request_object = Request( |
| 338 | "https://www.httpbin.org/post", |
| 339 | method="POST", |
| 340 | body=json.dumps({"foo": "bar"}), |
| 341 | ) |
| 342 | expected_curl_command = ( |
| 343 | 'curl -X POST https://www.httpbin.org/post --data-raw \'{"foo": "bar"}\'' |
| 344 | ) |
| 345 | self._test_request(request_object, expected_curl_command) |
| 346 | |
| 347 | def test_headers(self): |
| 348 | request_object = Request( |
nothing calls this directly
no test coverage detected