diff options
| author | Gordon Sim <gsim@apache.org> | 2013-09-05 20:38:15 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-09-05 20:38:15 +0000 |
| commit | 1f7c48655eed7f9cd5c16a9c4de047e8cd68f6fe (patch) | |
| tree | 3b4704b88ac30c27388aea0fd48635b40fff9f70 /qpid/python | |
| parent | b77cf451426f3b9712f1ae41e57e09f9d2edf403 (diff) | |
| download | qpid-python-1f7c48655eed7f9cd5c16a9c4de047e8cd68f6fe.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@1520416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/tests/messaging/message.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qpid/python/qpid/tests/messaging/message.py b/qpid/python/qpid/tests/messaging/message.py index b59dc53084..bfdd2c79e5 100644 --- a/qpid/python/qpid/tests/messaging/message.py +++ b/qpid/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) |
