mirror of https://github.com/MISP/PyMISP
fix: changes in msg-extract strip a character
parent
924998cf66
commit
289f92f5cf
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue