From 44510813d26dca74622497b0217c730b779205b4 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Mon, 25 Jan 2010 13:12:51 +0000 Subject: 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 --- python/qpid/tests/messaging.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/qpid/tests') 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, " -- cgit v1.2.1