def test_list_trim_policy_is_string(self):
        key = ('test', 'demo', 1)
        try:
            TestListTrim.client.list_trim(key, "contact_no", 0, 1, {}, "")

        except e.ParamError as exception:
            assert exception.code == -2
            assert exception.msg == "policy must be a dict"
Verifies/modifies the given query so that it is valid for the user
dataset/ETHPy150Open aerospike/aerospike-client-python/test/old_tests/_test_list_trim.py/TestListTrim.test_list_trim_policy_is_string--crossover with--dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/Authorizer.check_query