summaryrefslogtreecommitdiff
path: root/qpid/tests
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2014-02-25 13:47:27 +0000
committerGordon Sim <gsim@apache.org>2014-02-25 13:47:27 +0000
commit13d6180840fdd8d11b3bdcad3965e0d942b02756 (patch)
tree258a23ddd3ec61d888ffdda68ebeabfd1f5ed7fc /qpid/tests
parentddba94d2538db03bdca182ab29309ebf83cd81c9 (diff)
downloadqpid-python-13d6180840fdd8d11b3bdcad3965e0d942b02756.tar.gz
QPID-5584: use more specific exception types where appropriate
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1571688 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/tests')
-rw-r--r--qpid/tests/src/py/qpid_tests/broker_0_10/new_api.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/qpid/tests/src/py/qpid_tests/broker_0_10/new_api.py b/qpid/tests/src/py/qpid_tests/broker_0_10/new_api.py
index 617f1ab666..4140307266 100644
--- a/qpid/tests/src/py/qpid_tests/broker_0_10/new_api.py
+++ b/qpid/tests/src/py/qpid_tests/broker_0_10/new_api.py
@@ -48,6 +48,13 @@ class GeneralTests(Base):
def setup_session(self):
return self.conn.session()
+ def test_not_found(self):
+ ssn = self.setup_session()
+ try:
+ ssn.receiver("does-not-exist")
+ self.fail("Expected non-existent node to cause NotFound exception")
+ except NotFound, e: None
+
def test_qpid_3481_acquired_to_alt_exchange(self):
"""
Verify that acquired messages are routed to the alternate when the queue is deleted.