From f74e4dc27d1655760d0213fd60cc75c272c26f00 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 21 Feb 2007 19:24:02 +0000 Subject: 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 --- python/tests/queue.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'python/tests') 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") -- cgit v1.2.1