summaryrefslogtreecommitdiff
path: root/python/qpid/tests/messaging/message.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-08-12 18:37:19 +0000
committerRafael H. Schloming <rhs@apache.org>2010-08-12 18:37:19 +0000
commit0539fb89df2c2822f14bcc473911c6ad3aa0e9a5 (patch)
tree079c2bc5d9457ecdfe8b572b38b1b6d46d87130f /python/qpid/tests/messaging/message.py
parentbab125a6bb8adb04f0fc5d567158617248a5ad07 (diff)
downloadqpid-python-0539fb89df2c2822f14bcc473911c6ad3aa0e9a5.tar.gz
fixed reply-to conversion
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@984906 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests/messaging/message.py')
-rw-r--r--python/qpid/tests/messaging/message.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/python/qpid/tests/messaging/message.py b/python/qpid/tests/messaging/message.py
index 526a5cfab6..eaa953e7d7 100644
--- a/python/qpid/tests/messaging/message.py
+++ b/python/qpid/tests/messaging/message.py
@@ -117,3 +117,27 @@ class MessageEchoTests(Base):
def testTextPlainEmpty(self):
self.check(Message(content_type="text/plain"))
+
+ def check_rt(self, addr, expected=None):
+ if expected is None:
+ expected = addr
+ msg = Message(reply_to=addr)
+ self.snd.send(msg)
+ echo = self.rcv.fetch(0)
+ assert echo.reply_to == expected, echo.reply_to
+ self.ssn.acknowledge(echo)
+
+ def testReplyTo(self):
+ self.check_rt("name")
+
+ def testReplyToQueue(self):
+ self.check_rt("name; {node: {type: queue}}", "name")
+
+ def testReplyToQueueSubject(self):
+ self.check_rt("name/subject; {node: {type: queue}}", "name")
+
+ def testReplyToTopic(self):
+ self.check_rt("name; {node: {type: topic}}")
+
+ def testReplyToTopicSubject(self):
+ self.check_rt("name/subject; {node: {type: topic}}")