bt2: add invalid parameter type test for _UserComponent._create_trace_class
[babeltrace.git] / tests / bindings / python / bt2 / test_trace_class.py
index 3345b18a913edf0b0174ea99bea860e8d09ee4eb..841aaf67b3c9eb03d33eae6f55455f784f96136f 100644 (file)
@@ -69,6 +69,14 @@ class TraceClassTestCase(unittest.TestCase):
 
         self.assertRaisesInComponentInit(TypeError, f)
 
+    def test_create_invalid_automatic_stream_class_id_type(self):
+        def f(comp_self):
+            return comp_self._create_trace_class(
+                assigns_automatic_stream_class_id='perchaude'
+            )
+
+        self.assertRaisesInComponentInit(TypeError, f)
+
     def test_automatic_stream_class_id(self):
         def f(comp_self):
             return comp_self._create_trace_class(assigns_automatic_stream_class_id=True)
This page took 0.023346 seconds and 4 git commands to generate.