summaryrefslogtreecommitdiff
path: root/python/tests_0-10/query.py
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
commit31b4548068864bcc4d28af57f1a908e1e34ff1ee (patch)
tree63ba5333bbee418ae1015817d4b1f55b41b7954c /python/tests_0-10/query.py
parent94d64897d2fd071d89ef668ca953a1d6e15d781a (diff)
downloadqpid-python-31b4548068864bcc4d28af57f1a908e1e34ff1ee.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/qpid@660953 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests_0-10/query.py')
-rw-r--r--python/tests_0-10/query.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/tests_0-10/query.py b/python/tests_0-10/query.py
index 0bbfb079cc..311df84096 100644
--- a/python/tests_0-10/query.py
+++ b/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