graph = bt2.Graph()
comp = graph.add_component(MySink, 'salut')
self._comp_cls = comp.cls
- self.assertTrue(issubclass(type(self._comp_cls), bt2._SinkComponentClass))
+ self.assertTrue(issubclass(type(self._comp_cls), bt2._SinkComponentClassConst))
def tearDown(self):
del self._py_comp_cls