projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bt2: field.py: add `_count` method to `_VariantField`
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_field.py
diff --git
a/tests/bindings/python/bt2/test_field.py
b/tests/bindings/python/bt2/test_field.py
index 5c8d82870dbfff0961ee82b9b2e29036fa22a0a3..f478515fdfec23f10731ee22047d4a8e230ec3b5 100644
(file)
--- a/
tests/bindings/python/bt2/test_field.py
+++ b/
tests/bindings/python/bt2/test_field.py
@@
-1988,6
+1988,9
@@
class VariantFieldTestCase(unittest.TestCase):
self._def.value = 1774
self.assertEqual(self._def, field)
+ def test_len(self):
+ self.assertEqual(len(self._def), 4)
+
def test_eq_invalid_type(self):
self._def.selected_option_index = 1
self._def.value = 'gerry'
This page took
0.023548 seconds
and
4
git commands to generate.