def METHOD_NAME(self, request_mock):
    resource = stripe.Quote.modify(
        TEST_RESOURCE_ID, metadata={"key": "value"}
    )
    request_mock.assert_requested(
        "post", "/v1/quotes/%s" % TEST_RESOURCE_ID
    )
    assert isinstance(resource, stripe.Quote)