async def METHOD_NAME(client):
    class NoPollingError(PollingTwoSteps):
        async def run(self):
            raise ServiceResponseError("Something bad happened")
    initial_response = "Initial response"
    def deserialization_callback(response):
        return "Treated: " + response
    method = NoPollingError()
    poller = AsyncLROPoller(client, initial_response, deserialization_callback, method)
    with pytest.raises(ServiceResponseError) as excinfo:
        await poller.result()
    assert "Something bad happened" in str(excinfo.value)
    assert excinfo.value.continuation_token == "Initial response"