def test_neg_list_size_policy_is_string(self):
        key = ('test', 'demo', 1)
        try:
            self.as_connection.list_size(key, "contact_no", {}, "")

        except e.ParamError as exception:
            assert exception.code == -2
            assert exception.msg == "policy must be a dict"
Reimplemented to store the editor.
dataset/ETHPy150Open aerospike/aerospike-client-python/test/new_tests/test_list_size.py/TestListSize.test_neg_list_size_policy_is_string--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/image_enum_editor.py/ImageEnumItemDelegate.__init__