diff options
author | Michal 'vorner' Vaner <michal.vaner@nic.cz> | 2013-02-14 10:00:06 +0100 |
---|---|---|
committer | Michal 'vorner' Vaner <michal.vaner@nic.cz> | 2013-02-14 10:00:06 +0100 |
commit | 50bea9582f85b0684aa17a7cea7fb9d2405896c0 (patch) | |
tree | de5493abf63ac5fcff76329b26c6379cb77c9e2e /src | |
parent | Merge #1924 (diff) | |
download | kea-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.py | 7 |
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: |