bt2: check for _graph_is_configured method in user sink classes
[babeltrace.git] / tests / bindings / python / bt2 / test_component.py
index 4384c6654c8c951fad3545ebda3f2fceb89f7fed..69e5617b33808245ea0502f327fd699b1248da81 100644 (file)
@@ -40,6 +40,9 @@ class UserComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
         comp = self._create_comp(MySink, 'yaes')
 
     def test_logging_level(self):
@@ -50,6 +53,9 @@ class UserComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
         comp = self._create_comp(MySink, 'yaes', bt2.LoggingLevel.INFO)
 
     def test_class(self):
@@ -60,6 +66,9 @@ class UserComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
         self._create_comp(MySink)
 
     def test_addr(self):
@@ -71,6 +80,9 @@ class UserComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
         self._create_comp(MySink)
 
     def test_finalize(self):
@@ -80,6 +92,9 @@ class UserComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
             def _finalize(comp_self):
                 nonlocal finalized
                 finalized = True
@@ -107,6 +122,9 @@ class GenericComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
         comp = self._create_comp(MySink, 'yaes')
         self.assertEqual(comp.name, 'yaes')
 
@@ -115,6 +133,9 @@ class GenericComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
         comp = self._create_comp(MySink, 'yaes', bt2.LoggingLevel.WARNING)
         self.assertEqual(comp.logging_level, bt2.LoggingLevel.WARNING)
 
@@ -123,6 +144,9 @@ class GenericComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
         comp = self._create_comp(MySink)
         self.assertEqual(comp.cls, MySink)
 
@@ -131,6 +155,9 @@ class GenericComponentTestCase(unittest.TestCase):
             def _consume(self):
                 pass
 
+            def _graph_is_configured(self):
+                pass
+
         comp = self._create_comp(MySink)
         self.assertIsInstance(comp.addr, int)
         self.assertNotEqual(comp.addr, 0)
This page took 0.025135 seconds and 4 git commands to generate.