()
| 583 | |
| 584 | |
| 585 | def test_url_copywith_authority_subcomponents(): |
| 586 | copy_with_kwargs = { |
| 587 | "username": "username", |
| 588 | "password": "password", |
| 589 | "port": 444, |
| 590 | "host": "example.net", |
| 591 | } |
| 592 | url = httpx.URL("https://example.org") |
| 593 | new = url.copy_with(**copy_with_kwargs) |
| 594 | assert str(new) == "https://username:password@example.net:444" |
| 595 | |
| 596 | |
| 597 | def test_url_copywith_netloc(): |