(self)
| 439 | } |
| 440 | |
| 441 | def test_from_curl_with_kwargs(self): |
| 442 | r = self.request_class.from_curl( |
| 443 | 'curl -X PATCH "http://example.org"', method="POST", meta={"key": "value"} |
| 444 | ) |
| 445 | assert r.method == "POST" |
| 446 | assert r.meta == {"key": "value"} |
| 447 | |
| 448 | def test_from_curl_ignore_unknown_options(self): |
| 449 | # By default: it works and ignores the unknown options: --foo and -z |