def METHOD_NAME(self, request_mock):
    resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
    resource = resource.void_invoice()
    request_mock.assert_requested(
        "post", "/v1/invoices/%s/void" % TEST_RESOURCE_ID
    )
    assert isinstance(resource, stripe.Invoice)