projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: add invalid parameter type test for _UserComponent._create_trace_class
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_trace_class.py
diff --git
a/tests/bindings/python/bt2/test_trace_class.py
b/tests/bindings/python/bt2/test_trace_class.py
index 3345b18a913edf0b0174ea99bea860e8d09ee4eb..841aaf67b3c9eb03d33eae6f55455f784f96136f 100644
(file)
--- 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)
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)
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.024735 seconds
and
4
git commands to generate.