(self)
| 947 | assert response.json() == {"foo": "bar"} |
| 948 | |
| 949 | def test_copy(self) -> None: |
| 950 | copied = self.client.copy() |
| 951 | assert id(copied) != id(self.client) |
| 952 | |
| 953 | copied = self.client.copy(api_key="another my-anthropic-api-key") |
| 954 | assert copied.api_key == "another my-anthropic-api-key" |
| 955 | assert self.client.api_key == "my-anthropic-api-key" |
| 956 | |
| 957 | def test_copy_default_options(self) -> None: |
| 958 | # options that have a default are overridden correctly |