def has_capability(self, *args):
        caps = self.capabilities

        try:
            for arg in args:
                caps = caps[arg]

            # If only part of a capability path is specified, we don't want
            # to evaluate to True just because it has contents. We want to
            # only say we have a capability if it is indeed 'True'.
            return caps is True
        except (TypeError, __HOLE__):
            # The server either doesn't support the capability,
            # or returned no capabilities at all.
            return False
dataset/ETHPy150Open reviewboard/rbtools/rbtools/api/capabilities.py/Capabilities.has_capability