diff options
Diffstat (limited to 'python/tests_0-10/message.py')
| -rw-r--r-- | python/tests_0-10/message.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/python/tests_0-10/message.py b/python/tests_0-10/message.py index 8212c7be67..0fcc38caa0 100644 --- a/python/tests_0-10/message.py +++ b/python/tests_0-10/message.py @@ -571,11 +571,19 @@ class MessageTests(TestBase): self.subscribe(queue = "q", destination = "a", acquire_mode = 1, confirm_mode = 1) msg = self.client.queue("a").get(timeout = 1) - channel.message_acquire([msg.command_id, msg.command_id]) - msg.complete() + #message should still be on the queue: + self.assertEquals(1, channel.queue_query(queue = "q").message_count) + channel.message_acquire([msg.command_id, msg.command_id]) + #check that we get notification (i.e. message_acquired) + response = channel.control_queue.get(timeout=1) + self.assertEquals(response.transfers, [msg.command_id, msg.command_id]) #message should have been removed from the queue: self.assertEquals(0, channel.queue_query(queue = "q").message_count) + msg.complete() + + + def test_release(self): """ |
