projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bt2: add `_Trace.cls` property
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_trace.py
diff --git
a/tests/bindings/python/bt2/test_trace.py
b/tests/bindings/python/bt2/test_trace.py
index 6902924481f3c796b9afcaba226a29ace6e6a628..f3602c25348035316df3c06d8ee3cd17057c05c1 100644
(file)
--- a/
tests/bindings/python/bt2/test_trace.py
+++ b/
tests/bindings/python/bt2/test_trace.py
@@
-18,6
+18,10
@@
class TraceTestCase(unittest.TestCase):
with self.assertRaises(TypeError):
self._tc(name=17)
+ def test_attr_trace_class(self):
+ trace = self._tc(name='my name')
+ self.assertEqual(trace.cls.addr, self._tc.addr)
+
def test_len(self):
trace = self._tc()
sc = self._tc.create_stream_class()
This page took
0.022665 seconds
and
4
git commands to generate.