def METHOD_NAME(self, request_mock):
    resource = stripe.Quote.retrieve(TEST_RESOURCE_ID)
    resource = resource.cancel()
    request_mock.assert_requested(
        "post", "/v1/quotes/%s/cancel" % TEST_RESOURCE_ID
    )
    assert isinstance(resource, stripe.Quote)