summaryrefslogtreecommitdiff
path: root/python/tests/queue.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-21 19:24:02 +0000
committerGordon Sim <gsim@apache.org>2007-02-21 19:24:02 +0000
commitf74e4dc27d1655760d0213fd60cc75c272c26f00 (patch)
tree5685339cfabc9de785ec1e56de708ff4670ed904 /python/tests/queue.py
parent06078d52b5df0c3eb155a2895d5331880791212e (diff)
downloadqpid-python-f74e4dc27d1655760d0213fd60cc75c272c26f00.tar.gz
Fixed cases where open channel was re-opened.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@510160 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests/queue.py')
-rw-r--r--python/tests/queue.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/python/tests/queue.py b/python/tests/queue.py
index 9e32c44fd5..60ac4c3dfb 100644
--- a/python/tests/queue.py
+++ b/python/tests/queue.py
@@ -155,8 +155,7 @@ class QueueTests(TestBase):
"""
Test basic queue deletion
"""
- channel = self.client.channel(1)
- channel.channel_open()
+ channel = self.channel
#straight-forward case:
channel.queue_declare(queue="delete-me")
@@ -187,8 +186,7 @@ class QueueTests(TestBase):
"""
Test that if_empty field of queue_delete is honoured
"""
- channel = self.client.channel(1)
- channel.channel_open()
+ channel = self.channel
#create a queue and add a message to it (use default binding):
channel.queue_declare(queue="delete-me-2")
@@ -227,8 +225,7 @@ class QueueTests(TestBase):
"""
Test that if_unused field of queue_delete is honoured
"""
- channel = self.client.channel(1)
- channel.channel_open()
+ channel = self.channel
#create a queue and register a consumer:
channel.queue_declare(queue="delete-me-3")