summaryrefslogtreecommitdiff
path: root/python/qpid/tests
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2011-03-17 13:03:08 +0000
committerRafael H. Schloming <rhs@apache.org>2011-03-17 13:03:08 +0000
commitfa356bee994518e9f196be596199b5d518c048c8 (patch)
tree21a3cda37d453e399e57f77116c3cb21c56791ae /python/qpid/tests
parent887da9b9cbe998b94563ad63be56eae4379e4d0a (diff)
downloadqpid-python-fa356bee994518e9f196be596199b5d518c048c8.tar.gz
added support for address assertion
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1082478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests')
-rw-r--r--python/qpid/tests/messaging/endpoints.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/qpid/tests/messaging/endpoints.py b/python/qpid/tests/messaging/endpoints.py
index 419d0cb395..1929a47a6b 100644
--- a/python/qpid/tests/messaging/endpoints.py
+++ b/python/qpid/tests/messaging/endpoints.py
@@ -1186,6 +1186,13 @@ test-link-bindings-queue; {
snd.send(m)
self.drain(qrcv, expected=msgs)
+ def testAssert(self):
+ try:
+ snd = self.ssn.sender("amq.topic; {assert: always, node: {type: queue}}")
+ assert 0, "assertion failed to trigger"
+ except AssertionFailed, e:
+ pass
+
NOSUCH_Q = "this-queue-should-not-exist"
UNPARSEABLE_ADDR = "name/subject; {bad options"
UNLEXABLE_ADDR = "\0x0\0x1\0x2\0x3"