bt2: tests: Assert CC type, not if a subclass
[babeltrace.git] / tests / bindings / python / bt2 / test_component_class.py
index 6664b7a7020ef2c1afc5ccd793a54688ac3a670c..2abf514808c9915810556a9f1d2d3398ecb9eaf0 100644 (file)
@@ -16,7 +16,6 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-from bt2 import value
 import unittest
 import bt2
 
@@ -327,7 +326,7 @@ class ComponentClassTestCase(unittest.TestCase):
         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
This page took 0.024505 seconds and 4 git commands to generate.