summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-11-19 22:07:43 +0000
committerGordon Sim <gsim@apache.org>2009-11-19 22:07:43 +0000
commit4e7097e788097ffa50ff0a13ba13ee2d137f70ca (patch)
tree0205275c1f431256505e87df33d3ca216ae46e3f /python
parent9d53c2a6e04e436f19388a18a8481b2822dd4595 (diff)
downloadqpid-python-4e7097e788097ffa50ff0a13ba13ee2d137f70ca.tar.gz
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
Diffstat (limited to 'python')
-rw-r--r--python/tests_0-10/query.py16
1 files changed, 14 insertions, 2 deletions
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):