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