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)
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)