()
| 625 | |
| 626 | |
| 627 | def test_url_copywith_urlencoded_path(): |
| 628 | url = httpx.URL("https://example.org") |
| 629 | url = url.copy_with(path="/path to somewhere") |
| 630 | assert url.path == "/path to somewhere" |
| 631 | assert url.query == b"" |
| 632 | assert url.raw_path == b"/path%20to%20somewhere" |
| 633 | |
| 634 | |
| 635 | def test_url_copywith_query(): |