summaryrefslogtreecommitdiff
path: root/python/qpid/tests/messaging.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-01-25 13:12:51 +0000
committerRafael H. Schloming <rhs@apache.org>2010-01-25 13:12:51 +0000
commit44510813d26dca74622497b0217c730b779205b4 (patch)
tree9028252b4b1135dddeec55500d389097430f26a6 /python/qpid/tests/messaging.py
parentcdee35e16d30c13132a5c6b7ce5f84db2e5fdfd8 (diff)
downloadqpid-python-44510813d26dca74622497b0217c730b779205b4.tar.gz
verify that bindings are only specified for queues
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@902803 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests/messaging.py')
-rw-r--r--python/qpid/tests/messaging.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/qpid/tests/messaging.py b/python/qpid/tests/messaging.py
index 7bcbc455af..ea4ae6a7fb 100644
--- a/python/qpid/tests/messaging.py
+++ b/python/qpid/tests/messaging.py
@@ -613,6 +613,12 @@ class AddressTests(Base):
self.badOption("{node-properties: {durable: []}}",
"node-properties: durable: [] is not a bool")
+ def testNonQueueBindings(self):
+ self.badOption("{node-properties: {type: topic, x-properties: "
+ "{bindings: []}}}",
+ "node-properties: x-properties: bindings: "
+ "bindings are only permitted on nodes of type queue")
+
def testCreateQueue(self):
snd = self.ssn.sender("test-create-queue; {create: always, delete: always, "
"node-properties: {type: queue, durable: False, "