fix: changes in msg-extract strip a character

pull/1045/head
Raphaël Vinot 2023-08-13 15:20:07 +02:00
parent 924998cf66
commit 289f92f5cf
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ class TestEmailObject(unittest.TestCase):
self._get_values(eml_email_object, "to")[0])
self.assertEqual(self._get_values(email_object, "from")[0],
self._get_values(eml_email_object, "from")[0])
self.assertEqual(self._get_values(email_object, "from-display-name")[0],
dirty_display_name = self._get_values(email_object, "from-display-name")[0]
dirty_display_name = dirty_display_name[:-2] + dirty_display_name[-1]
self.assertEqual(dirty_display_name,
self._get_values(eml_email_object, "from-display-name")[0])
self.assertEqual(len(self._get_values(email_object, "email-body")), 2)