summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-09-05 20:38:15 +0000
committerGordon Sim <gsim@apache.org>2013-09-05 20:38:15 +0000
commited10c297f0b6e8232e0f2cbc0e88cc7d473982a1 (patch)
tree14dd6bd29dc5b4a15958bfd8c5505ff68e8ffaaa /python
parentd729a4befc08ee8fbd891dcaa94c6e86d385da16 (diff)
downloadqpid-python-ed10c297f0b6e8232e0f2cbc0e88cc7d473982a1.tar.gz
QPID-5104: make handling of properties in swigged impl match the pure python impl more closely
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1520416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/tests/messaging/message.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/qpid/tests/messaging/message.py b/python/qpid/tests/messaging/message.py
index b59dc53084..bfdd2c79e5 100644
--- a/python/qpid/tests/messaging/message.py
+++ b/python/qpid/tests/messaging/message.py
@@ -111,6 +111,17 @@ class MessageEchoTests(Base):
msg.reply_to = "reply-address"
self.check(msg)
+ def testApplicationProperties(self):
+ msg = Message()
+ msg.properties["a"] = u"A"
+ msg.properties["b"] = 1
+ msg.properties["c"] = ["x", 2]
+ msg.properties["d"] = "D"
+ #make sure deleting works as expected
+ msg.properties["foo"] = "bar"
+ del msg.properties["foo"]
+ self.check(msg)
+
def testContentTypeUnknown(self):
msg = Message(content_type = "this-content-type-does-not-exist")
self.check(msg)