X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_error.py;h=ca750aea6cd4acfe80987d836eab1e4c07d1af23;hb=6a91742b3a25285222551341c8a134b4b2b5aba9;hp=9ae8b36c08090e51be8cde73893cc84d13ad5df8;hpb=0ddaae90f2789927df222570c9df951aa15c6248;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_error.py b/tests/bindings/python/bt2/test_error.py index 9ae8b36c..ca750aea 100644 --- a/tests/bindings/python/bt2/test_error.py +++ b/tests/bindings/python/bt2/test_error.py @@ -44,10 +44,10 @@ class WorkingSink(bt2._UserSinkComponent): def __init__(self, params): self._in = self._add_input_port('in') - def _graph_is_configured(self): + def _user_graph_is_configured(self): self._iter = self._create_input_port_message_iterator(self._in) - def _consume(self): + def _user_consume(self): next(self._iter) @@ -55,10 +55,10 @@ class SinkWithExceptionChaining(bt2._UserSinkComponent): def __init__(self, params): self._in = self._add_input_port('in') - def _graph_is_configured(self): + def _user_graph_is_configured(self): self._iter = self._create_input_port_message_iterator(self._in) - def _consume(self): + def _user_consume(self): try: next(self._iter) except bt2._Error as e: @@ -66,14 +66,11 @@ class SinkWithExceptionChaining(bt2._UserSinkComponent): class SinkWithFailingQuery(bt2._UserSinkComponent): - def _graph_is_configured(self): - pass - - def _consume(self): + def _user_consume(self): pass @staticmethod - def _query(executor, obj, params, log_level): + def _user_query(executor, obj, params, log_level): raise ValueError('Query is failing')