diff options
author | Barry Warsaw <barry@list.org> | 2008-12-01 23:25:33 -0500 |
---|---|---|
committer | Barry Warsaw <barry@list.org> | 2008-12-01 23:25:33 -0500 |
commit | 2da8819928e6b010eb6c9d34c71a4f9f0287af9b (patch) | |
tree | 7ad0054577c7e457a94ecec5cd55d0003c2c2f08 /tests/test_message.py | |
parent | 0e6f7c1fc99eb7e35c23695bca2c17e757baf514 (diff) | |
parent | f579d5c290b80e00974e8c034f9d6dd697fcdfa6 (diff) | |
download | mailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.tar.gz mailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.tar.xz mailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.zip |
Merge Mark's changes to complete the Python 2.6 compatibility.
Diffstat (limited to 'tests/test_message.py')
-rw-r--r-- | tests/test_message.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_message.py b/tests/test_message.py index da6f8a08..6a4cc3d2 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2008 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -81,10 +81,10 @@ yadda yadda yadda # second message is the message/rfc822 attachment of the original # message. msg1 = qmsg.get_payload(0) - eq(msg1.get_type(), 'text/plain') + eq(msg1.get_content_type(), 'text/plain') eq(msg1.get_payload(), '[No bounce details are available]\n') msg2 = qmsg.get_payload(1) - eq(msg2.get_type(), 'message/rfc822') + eq(msg2.get_content_type(), 'message/rfc822') unless(not msg2.is_multipart()) msg3 = msg2.get_payload() eq(msg3.get_payload(), 'yadda yadda yadda\n') |