From 4e7097e788097ffa50ff0a13ba13ee2d137f70ca Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 19 Nov 2009 22:07:43 +0000 Subject: In exchange-bound, set queue-not-found correctly even if exchange is not found. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@882322 13f79535-47bb-0310-9956-ffa450edef68 --- python/tests_0-10/query.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/tests_0-10/query.py b/python/tests_0-10/query.py index 311df84096..d57e964982 100644 --- a/python/tests_0-10/query.py +++ b/python/tests_0-10/query.py @@ -133,8 +133,20 @@ class QueryTests(TestBase010): #test exchange not found self.assertEqual(True, session.exchange_bound(exchange="unknown-exchange").exchange_not_found) - #test queue not found - self.assertEqual(True, session.exchange_bound(exchange=exchange_name, queue="unknown-queue").queue_not_found) + #test exchange found, queue not found + response = session.exchange_bound(exchange=exchange_name, queue="unknown-queue") + self.assertEqual(False, response.exchange_not_found) + self.assertEqual(True, response.queue_not_found) + + #test exchange not found, queue found + response = session.exchange_bound(exchange="unknown-exchange", queue="used-queue") + self.assertEqual(True, response.exchange_not_found) + self.assertEqual(False, response.queue_not_found) + + #test not exchange found, queue not found + response = session.exchange_bound(exchange="unknown-exchange", queue="unknown-queue") + self.assertEqual(True, response.exchange_not_found) + self.assertEqual(True, response.queue_not_found) def test_exchange_bound_fanout(self): -- cgit v1.2.1