()
| 617 | |
| 618 | |
| 619 | def test_url_copywith_invalid_component(): |
| 620 | url = httpx.URL("https://example.org") |
| 621 | with pytest.raises(TypeError): |
| 622 | url.copy_with(pathh="/incorrect-spelling") |
| 623 | with pytest.raises(TypeError): |
| 624 | url.copy_with(userinfo="should be bytes") |
| 625 | |
| 626 | |
| 627 | def test_url_copywith_urlencoded_path(): |