summaryrefslogtreecommitdiff
path: root/python/qpid/tests
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-07-12 13:43:27 +0000
committerRafael H. Schloming <rhs@apache.org>2010-07-12 13:43:27 +0000
commit4739ca25936b56e123a10aca584064478500dca4 (patch)
tree56dbe86bb77d842fc95b754196c5d256c7de85ae /python/qpid/tests
parent3ece0b6afe552f832962ffea5a5143c7d54453d3 (diff)
downloadqpid-python-4739ca25936b56e123a10aca584064478500dca4.tar.gz
fixed payload of None for text/plain messages
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@963280 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests')
-rw-r--r--python/qpid/tests/messaging/message.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/qpid/tests/messaging/message.py b/python/qpid/tests/messaging/message.py
index 91aab5fb35..526a5cfab6 100644
--- a/python/qpid/tests/messaging/message.py
+++ b/python/qpid/tests/messaging/message.py
@@ -111,3 +111,9 @@ class MessageEchoTests(Base):
def testContentTypeUnknown(self):
msg = Message(content_type = "this-content-type-does-not-exist")
self.check(msg)
+
+ def testTextPlain(self):
+ self.check(Message(content_type="text/plain", content="asdf"))
+
+ def testTextPlainEmpty(self):
+ self.check(Message(content_type="text/plain"))