def grant(self, *capabilities_to_grant):
        possible_capabilities = self.service.capabilities
        for capability in capabilities_to_grant:
            if capability not in possible_capabilities:
                raise NoSuchCapability(capability)
        new_capabilities = self['capabilities'] + list(capabilities_to_grant)
        self.post(capabilities=new_capabilities)
        return self
Resets *all* internally captured state.
dataset/ETHPy150Open hvandenb/splunk-elasticsearch/search-elasticsearch/bin/splunklib/client.py/Role.grant--crossover with--dataset/ETHPy150Open openstack/taskflow/taskflow/test.py/CapturingLoggingHandler.reset