summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-05-28 13:56:59 +0000
committerGordon Sim <gsim@apache.org>2008-05-28 13:56:59 +0000
commit8e430931619f5778a15b56b7b6042eac18899637 (patch)
tree97413575bbc2af81930f02ec8f4514556edc174b /qpid/python
parent744d39a42e3c19bd247276388b08744bb6e73089 (diff)
downloadqpid-python-8e430931619f5778a15b56b7b6042eac18899637.tar.gz
QPID-1098: correction to queue query when queue is not known
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@660953 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/tests_0-10/query.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/python/tests_0-10/query.py b/qpid/python/tests_0-10/query.py
index 0bbfb079cc..311df84096 100644
--- a/qpid/python/tests_0-10/query.py
+++ b/qpid/python/tests_0-10/query.py
@@ -30,6 +30,11 @@ class QueryTests(TestBase010):
result = session.queue_query(queue="my-queue")
self.assertEqual("my-queue", result.queue)
+ def test_queue_query_unknown(self):
+ session = self.session
+ result = session.queue_query(queue="I don't exist")
+ self.assert_(not result.queue)
+
def test_exchange_query(self):
"""
Test that the exchange_query method works as expected