def test_all_instantiable(self):
        """Test if all the TVTK classes can be instantiated"""
        errors = []
        for name in self.names:
            klass = getattr(vtk, name)
            tvtk_name = get_tvtk_name(name)
            tvtk_klass = getattr(tvtk, tvtk_name, None)
            if hasattr(klass, '__bases__') and tvtk_klass is not None:
                try:
                    klass()
                except (__HOLE__, NotImplementedError):
                    # These classes are abstract and can't/shouldn't
                    # be instantiated.
                    pass
                else:
                    try:
                        tvtk_klass()
                    except TraitError:
                        errors.append(traceback.format_exc())
        if len(errors) > 0:
            message = "Not all classes could be instantiated:\n{0}\n"
            raise AssertionError(message.format(''.join(errors)))
dataset/ETHPy150Open enthought/mayavi/tvtk/tests/test_tvtk.py/TestTVTKModule.test_all_instantiable