

def _option_required(self, key):
    conf = self.getConfig()
    conf[key] = None
    try:
        self.config(**conf)
        key.store = Store(self.conf)
        return (not self.store.is_capable(capabilities.BitMasks.WRITE_ACCESS))
    except Exception:
        return False

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py SwiftTests._option_required/VarMisuse@39/44 `self`->`key`