From 289f92f5cf3e94f8bdc943a8c3e446b612e75c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sun, 13 Aug 2023 15:20:07 +0200 Subject: [PATCH] fix: changes in msg-extract strip a character --- tests/test_emailobject.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_emailobject.py b/tests/test_emailobject.py index 98934ab..1940f5f 100644 --- a/tests/test_emailobject.py +++ b/tests/test_emailobject.py @@ -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)