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