From 4739ca25936b56e123a10aca584064478500dca4 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Mon, 12 Jul 2010 13:43:27 +0000 Subject: 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 --- python/qpid/tests/messaging/message.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/qpid/tests') 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")) -- cgit v1.2.1