diff options
| author | Gordon Sim <gsim@apache.org> | 2007-10-18 12:53:46 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-10-18 12:53:46 +0000 |
| commit | e77ead1fcc4ab32323a1a1212e42498ed6c4b60e (patch) | |
| tree | 417fbf542630124e09e8587ff925e612eacd48a1 /python | |
| parent | 5fab67a9881d5113a1b1bb0cd66235b430885618 (diff) | |
| download | qpid-python-e77ead1fcc4ab32323a1a1212e42498ed6c4b60e.tar.gz | |
Fixed return of acquired message ranges (and added tests)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@585952 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
| -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): """ |
