bt2: rename object's own BT class property to `cls`
[babeltrace.git] / tests / bindings / python / bt2 / test_component_class.py
index a4b7e05d4c8f1968493f19421039f6987e6d3310..f7f5627d2d0edfe0114afef00a547ab830bb14a4 100644 (file)
@@ -1,10 +1,8 @@
-from bt2 import values
+from bt2 import value
 import unittest
-import copy
 import bt2
 
 
-@unittest.skip("this is broken")
 class UserComponentClassTestCase(unittest.TestCase):
     def _test_no_init(self, cls):
         with self.assertRaises(bt2.Error):
@@ -272,7 +270,6 @@ class UserComponentClassTestCase(unittest.TestCase):
         self.assertEqual(MySink, MySink)
 
 
-@unittest.skip("this is broken")
 class GenericComponentClassTestCase(unittest.TestCase):
     def setUp(self):
         class MySink(bt2._UserSinkComponent):
@@ -291,7 +288,7 @@ class GenericComponentClassTestCase(unittest.TestCase):
         self._py_comp_cls = MySink
         graph = bt2.Graph()
         comp = graph.add_component(MySink, 'salut')
-        self._comp_cls = comp.component_class
+        self._comp_cls = comp.cls
         self.assertTrue(issubclass(type(self._comp_cls),
                                    bt2.component._GenericComponentClass))
 
This page took 0.023437 seconds and 4 git commands to generate.