'Get the version document by url.
This gets the version document for a url, useful in testing
the contents of things like /v2/ or /v2.1/ in Nova. That
controller needs authenticated access, so we have to get
ourselves a token before making the request.'

def get_version_by_url(self, version_url):

    (resp, body) = self.raw_request(version_url, 'GET', {'X-Auth-Token': self.token})
    self._error_checker(resp, body)
    body = json.loads(body)
    self.validate_response(schema.get_one_version, resp, body)
    return rest_client.ResponseBody(resp, body)
