summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2013-02-14 10:00:06 +0100
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>2013-02-14 10:00:06 +0100
commit50bea9582f85b0684aa17a7cea7fb9d2405896c0 (patch)
treede5493abf63ac5fcff76329b26c6379cb77c9e2e /src
parentMerge #1924 (diff)
downloadkea-50bea9582f85b0684aa17a7cea7fb9d2405896c0.tar.xz
kea-50bea9582f85b0684aa17a7cea7fb9d2405896c0.zip
[2676] Store the want_answer in fake session
So we are both compatible and we can check it in the tests.
Diffstat (limited to 'src')
-rw-r--r--src/lib/python/isc/config/tests/unittest_fakesession.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/python/isc/config/tests/unittest_fakesession.py b/src/lib/python/isc/config/tests/unittest_fakesession.py
index 1641ec0ea9..38a0637069 100644
--- a/src/lib/python/isc/config/tests/unittest_fakesession.py
+++ b/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: