Fix: bt2: duplicate test name in test_field.py
[babeltrace.git] / tests / bindings / python / bt2 / test_field.py
index 6271b7706f52803b60a7d7e1ba45542c04431796..53906b97c065a4a5ed28eef0c5c82a62dad5334c 100644 (file)
@@ -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)])
@@ -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)
 
This page took 0.025063 seconds and 4 git commands to generate.