'Setup for making the request
When retry() calls the do_request() function, it calls it the
test user\'s token, the parsed path, a connection and (optionally)
a token from the test service user. We save options here so that
do_request() can make the appropriate request.
:param method: The operation (e.g. \'HEAD\')
:param use_service_account: Optional. Set True to change the path to
be the service account
:param container: Optional. Adds a container name to the path
:param obj: Optional. Adds an object name to the path
:param body: Optional. Adds a body (string) in the request
:param headers: Optional. Adds additional headers.
:param x_auth_token: Optional. Default is SET_TO_USERS_TOKEN. One of:
SET_TO_USERS_TOKEN     Put the test user\'s token in
X-Auth-Token
SET_TO_SERVICE_TOKEN   Put the service token in X-Auth-Token
:param x_service_token: Optional. Default is to not set X-Service-Token
to any value. If specified, is one of following:
SET_TO_USERS_TOKEN     Put the test user\'s token in
X-Service-Token
SET_TO_SERVICE_TOKEN   Put the service token in
X-Service-Token
:param dbg: Optional. Set true to check request arguments'

def prepare_request(self, method, use_service_account=False, container=None, obj=None, body=None, headers=None, x_auth_token=None, x_service_token=None, dbg=False):

    self.method = method
    self.use_service_account = use_service_account
    self.container = container
    self.obj = obj
    self.body = body
    self.headers = headers
    if x_auth_token:
        self.x_auth_token = x_auth_token
    else:
        self.x_auth_token = self.SET_TO_USERS_TOKEN
    self.x_service_token = x_service_token
    self.dbg = dbg
