def insert(self, parent, index, child):

        parent.insert(index, child)

        # Trait notification.
        #self.items_inserted(parent, [index], [child])

        return child
Determine that `code` raises `err_type` with `err_msg`.
dataset/ETHPy150Open enthought/pyface/pyface/viewer/default_tree_content_provider.py/DefaultTreeContentProvider.insert--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/testutil.py/assertRaisesError