diff --git a/run_tests.py b/run_tests.py index c9efa64..5e270ab 100644 --- a/run_tests.py +++ b/run_tests.py @@ -56,7 +56,7 @@ if __name__ == '__main__': # jmc_suite = unittest.TestSuite((mail_component_suite)) # jmc_suite = unittest.TestSuite() -# jmc_suite.addTest(MailAccount_TestCase('test_get_register_fields')) +# jmc_suite.addTest(MailAccount_TestCase('test_format_message_summary_partial_encoded')) jmc_suite = unittest.TestSuite((lang_suite, \ mail_account_suite, \ imap_account_suite, \ diff --git a/tests/jmc/model/test_account.py b/tests/jmc/model/test_account.py index bf69c39..be7e733 100644 --- a/tests/jmc/model/test_account.py +++ b/tests/jmc/model/test_account.py @@ -98,11 +98,11 @@ class MailAccount_TestCase(unittest.TestCase): make_test((True, False, True), \ lambda self, email: \ email.replace_header("Subject", \ - "\"" + str(email["Subject"]) \ - + "\" not encoded part") or \ + "\" " + str(email["Subject"]) \ + + " \" not encoded part") or \ email.replace_header("From", \ - "\"" + str(email["From"]) \ - + "\" not encoded part") or \ + "\" " + str(email["From"]) \ + + " \" not encoded part") or \ self.account.format_message_summary(email), \ (u"From : \"encoded from (éàê)\" not encoded part\nSubject " + \ u": \"encoded subject (éàê)\" not encoded part\n\n", \