# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-from bt2 import value
import unittest
import bt2
graph = bt2.Graph()
comp = graph.add_component(MySink, 'salut')
self._comp_cls = comp.cls
- self.assertTrue(issubclass(type(self._comp_cls), bt2._SinkComponentClass))
+ self.assertIs(type(self._comp_cls), bt2._SinkComponentClassConst)
def tearDown(self):
del self._py_comp_cls