From fb7be00779dad7d7d56a7d80fce7ecda74ffdd9d Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Tue, 17 Jul 2007 21:19:01 +0000 Subject: fix 0-8 cancel test also git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@557058 13f79535-47bb-0310-9956-ffa450edef68 --- python/tests_0-8/basic.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/tests_0-8/basic.py b/python/tests_0-8/basic.py index 140576540a..95ca0d7287 100644 --- a/python/tests_0-8/basic.py +++ b/python/tests_0-8/basic.py @@ -126,12 +126,13 @@ class BasicTests(TestBase): channel.basic_consume(consumer_tag="my-consumer", queue="test-queue-4") channel.basic_publish(routing_key="test-queue-4", content=Content("One")) - #cancel should stop messages being delivered - channel.basic_cancel(consumer_tag="my-consumer") - channel.basic_publish(routing_key="test-queue-4", content=Content("Two")) myqueue = self.client.queue("my-consumer") msg = myqueue.get(timeout=1) self.assertEqual("One", msg.content.body) + + #cancel should stop messages being delivered + channel.basic_cancel(consumer_tag="my-consumer") + channel.basic_publish(routing_key="test-queue-4", content=Content("Two")) try: msg = myqueue.get(timeout=1) self.fail("Got message after cancellation: " + msg) -- cgit v1.2.1