summaryrefslogtreecommitdiff
path: root/qpid/python/tests_0-8/basic.py
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2007-07-17 21:19:01 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2007-07-17 21:19:01 +0000
commit13310282457c729ff5a7f7d11855a1db2f274d49 (patch)
treeae43f9205fcda4f982a91f51ca3d3ff0b09b23fc /qpid/python/tests_0-8/basic.py
parent35d50318300dcad92e5f7c7210fc74f880c3e655 (diff)
downloadqpid-python-13310282457c729ff5a7f7d11855a1db2f274d49.tar.gz
fix 0-8 cancel test also
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@557058 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests_0-8/basic.py')
-rw-r--r--qpid/python/tests_0-8/basic.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/python/tests_0-8/basic.py b/qpid/python/tests_0-8/basic.py
index 140576540a..95ca0d7287 100644
--- a/qpid/python/tests_0-8/basic.py
+++ b/qpid/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)