From 5c5bb0cedca2e7c55168eb46bf2a18b50833fb8d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 7 Apr 2017 15:18:40 +0300 Subject: Add test for In-Reply-To --- distixlib/msg_id_extractor_tests.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/distixlib/msg_id_extractor_tests.py b/distixlib/msg_id_extractor_tests.py index 0b5c82a..74a4886 100644 --- a/distixlib/msg_id_extractor_tests.py +++ b/distixlib/msg_id_extractor_tests.py @@ -56,6 +56,21 @@ To: other@example.com Subject: O, Romeo References: , +Wherefore art thou? +''' + + msg = email.message_from_string(msg_text) + self.assertEqual( + distixlib.get_ids_from_message(msg), + set(['capulet123@verona', 'capulet456@verona'])) + + def test_returns_ids_from_in_reply_to(self): + msg_text = '''\ +From: user@example.com +To: other@example.com +Subject: O, Romeo +In-Reply-To: , + Wherefore art thou? ''' -- cgit v1.2.1