def test_field_update_with_invalid_element(self):
        field_keys = ['collection_id', 'field_name','field_desc', 'field_type', 'field_len','element_name']

        val_list   = [self.collection_id, 'field-z', 'field-a-desc','string',15  , None]
        kv         = dict(zip(field_keys, val_list))
        assert self.md.field_tools.setter(**kv) > 0
        assert self.md.field_tools.setter(**kv) == 0

        val_list   = [self.collection_id, 'field-z', 'field-a-desc','string', 15, 'bad_name']
        kv         = dict(zip(field_keys, val_list))
        # pylint: disable=E1101
        with pytest.raises(exc.IntegrityError):
            self.md.field_tools.setter(**kv)
        # pylint: enable=E1101



#@pytest.mark.skipif("1 == 1")
dataset/ETHPy150Open kenfar/DataGristle/gristle/tests/test_metadata.py/TestField.test_field_update_with_invalid_element/original