X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_trace_class.py;h=bd80586cfbc03393215fc98b2e7b4ff9f3884ddc;hb=7a16abe7c1ec30d8b2407885316e32fd3daa01eb;hp=3345b18a913edf0b0174ea99bea860e8d09ee4eb;hpb=b6932b96012ad89dc055867f0a9fbea08b295278;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_trace_class.py b/tests/bindings/python/bt2/test_trace_class.py index 3345b18a..bd80586c 100644 --- a/tests/bindings/python/bt2/test_trace_class.py +++ b/tests/bindings/python/bt2/test_trace_class.py @@ -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) @@ -218,7 +226,7 @@ class TraceClassTestCase(unittest.TestCase): with self.assertRaisesRegex( ValueError, - r'This trace class destruction listener does not match the trace object\.', + r'This trace class destruction listener does not match the trace class object\.', ): trace_class_2.remove_destruction_listener(handle1)