summaryrefslogtreecommitdiff
path: root/python/tests_0-10
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-10-17 13:45:27 +0000
committerGordon Sim <gsim@apache.org>2007-10-17 13:45:27 +0000
commit69aabf18f7ce2377e411bddb8fb2297e2254b280 (patch)
tree600fbde59d3c8116c7d8dff66511949fbe8f5a3a /python/tests_0-10
parent8d5defb2febf2988d77cc0b2ee8b7f137119eac1 (diff)
downloadqpid-python-69aabf18f7ce2377e411bddb8fb2297e2254b280.tar.gz
Fix to headers exchanges bind: need to check the match value is present before dereferencing
Added tests for this. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@585503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests_0-10')
-rw-r--r--python/tests_0-10/exchange.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/tests_0-10/exchange.py b/python/tests_0-10/exchange.py
index 4d8b254df7..86c39b7736 100644
--- a/python/tests_0-10/exchange.py
+++ b/python/tests_0-10/exchange.py
@@ -325,3 +325,11 @@ class MiscellaneousErrorsTests(TestBase):
c2.session_open()
c2.exchange_delete(exchange="test_different_declared_type_exchange")
+class ExchangeTests(TestBase):
+ def testHeadersBindNoMatchArg(self):
+ self.channel.queue_declare(queue="q", exclusive=True, auto_delete=True)
+ try:
+ self.channel.queue_bind(queue="q", exchange="amq.match", arguments={"name":"fred" , "age":3} )
+ self.fail("Expected failure for missing x-match arg.")
+ except Closed, e:
+ self.assertConnectionException(541, e.args[0])