X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_field.py;h=53906b97c065a4a5ed28eef0c5c82a62dad5334c;hb=b24c604a47b13a1367a5a0e8571e120ad1290052;hp=ecf0194c3b7d589b036a82bf364f17e26a9e8be8;hpb=cc80c640af9dae4b46f88523af75664afecd252e;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_field.py b/tests/bindings/python/bt2/test_field.py index ecf0194c..53906b97 100644 --- a/tests/bindings/python/bt2/test_field.py +++ b/tests/bindings/python/bt2/test_field.py @@ -73,7 +73,7 @@ def _create_const_field(tc, field_class, field_value_setter_fn): field_name = 'const field' class MyIter(bt2._UserMessageIterator): - def __init__(self, self_port_output): + def __init__(self, config, self_port_output): nonlocal field_class nonlocal field_value_setter_fn stream = _create_stream(tc, [(field_name, field_class)]) @@ -93,7 +93,7 @@ def _create_const_field(tc, field_class, field_value_setter_fn): return self._msgs.pop(0) class MySrc(bt2._UserSourceComponent, message_iterator_class=MyIter): - def __init__(self, params, obj): + def __init__(self, config, params, obj): self._add_output_port('out', params) graph = bt2.Graph() @@ -2167,7 +2167,7 @@ class OptionFieldTestCase(unittest.TestCase): self._def.has_field = True self.assertTrue(self._def.has_field) - def test_has_field_prop_true(self): + def test_has_field_prop_false(self): self._def.has_field = False self.assertFalse(self._def.has_field) @@ -2175,7 +2175,7 @@ class OptionFieldTestCase(unittest.TestCase): self._def.value = 'allo' self.assertTrue(self._def) - def test_bool_op_true(self): + def test_bool_op_false(self): self._def.has_field = False self.assertFalse(self._def)