X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_component.py;h=d420f926001cc1e3c92a664d1a8a7642541ba989;hb=66964f3f7b0b7e3b774ddb043b0f197018d23730;hp=e347d98160005521c2af1980ff8ef6845fee9cb4;hpb=ab1cea3f45de3ad0f4d70165c723f321a0eae10c;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_component.py b/tests/bindings/python/bt2/test_component.py index e347d981..d420f926 100644 --- a/tests/bindings/python/bt2/test_component.py +++ b/tests/bindings/python/bt2/test_component.py @@ -33,7 +33,7 @@ class UserComponentTestCase(unittest.TestCase): def test_name(self): class MySink(bt2._UserSinkComponent): - def __init__(comp_self, params): + def __init__(comp_self, params, obj): self.assertEqual(comp_self.name, 'yaes') def _user_consume(self): @@ -43,7 +43,7 @@ class UserComponentTestCase(unittest.TestCase): def test_logging_level(self): class MySink(bt2._UserSinkComponent): - def __init__(comp_self, params): + def __init__(comp_self, params, obj): self.assertEqual(comp_self.logging_level, bt2.LoggingLevel.INFO) def _user_consume(self): @@ -53,7 +53,7 @@ class UserComponentTestCase(unittest.TestCase): def test_class(self): class MySink(bt2._UserSinkComponent): - def __init__(comp_self, params): + def __init__(comp_self, params, obj): self.assertEqual(comp_self.cls, MySink) def _user_consume(self): @@ -63,7 +63,7 @@ class UserComponentTestCase(unittest.TestCase): def test_addr(self): class MySink(bt2._UserSinkComponent): - def __init__(comp_self, params): + def __init__(comp_self, params, obj): self.assertIsInstance(comp_self.addr, int) self.assertNotEqual(comp_self.addr, 0)