'Updates a tenant.
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref/identity/v2-admin/index.html#update-tenant'

def update_tenant(self, tenant_id, **kwargs):

    if ('id' not in kwargs):
        kwargs['id'] = tenant_id
    post_body = json.dumps({'tenant': kwargs})
    (resp, body) = self.post(('tenants/%s' % tenant_id), post_body)
    self.expected_success(200, resp.status)
    body = json.loads(body)
    return rest_client.ResponseBody(resp, body)
