def METHOD_NAME(self, policy, key, value):
    subpolicy = {key: value}
    with pytest.raises(e.ParamError):
        aerospike.client({"hosts": [("localhost", 3000)], "policies": {policy: subpolicy}})