bt2: prepend `_user` to overridable protected methods
[babeltrace.git] / tests / bindings / python / bt2 / test_error.py
index 9ae8b36c08090e51be8cde73893cc84d13ad5df8..ca750aea6cd4acfe80987d836eab1e4c07d1af23 100644 (file)
@@ -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')
 
 
This page took 0.023665 seconds and 4 git commands to generate.