Parcourir la source

[2676] Store the want_answer in fake session

So we are both compatible and we can check it in the tests.
Michal 'vorner' Vaner il y a 12 ans
Parent
commit
50bea9582f
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      src/lib/python/isc/config/tests/unittest_fakesession.py

+ 4 - 3
src/lib/python/isc/config/tests/unittest_fakesession.py

@@ -68,12 +68,13 @@ class FakeModuleCCSession:
         else:
             return False
 
-    def group_sendmsg(self, msg, channel, target = None):
-        self.message_queue.append([ channel, target, msg ])
+    def group_sendmsg(self, msg, channel, target=None, want_answer=False):
+        self.message_queue.append([ channel, target, msg, want_answer ])
+        return 42
 
     def group_reply(self, env, msg):
         if 'group' in env:
-            self.message_queue.append([ env['group'], None, msg])
+            self.message_queue.append([ env['group'], None, msg, False])
 
     def group_recvmsg(self, nonblock=True, seq = None):
         for qm in self.message_queue: