diff --git a/tests/test_email_service.py b/tests/test_email_service.py index 995ba55d82d90c0a84c51d11b369424b5332182c..71c3d4fc91d5581874b78102c027715ad6fa2e33 100644 --- a/tests/test_email_service.py +++ b/tests/test_email_service.py @@ -237,6 +237,39 @@ class EmailServiceTests(unittest.TestCase): self.assertEqual(request["language"], "fa") self.assertEqual(request["platform"], "linux") + request = ep.parse("From: \"silvia [hiro]\" \n" + "Subject: Re: [GetTor] Help Email\r\n Reply-To: hiro@torproject.org \nTo:" + "gettor@torproject.org\nlinux fa\n\n" + "On 2020-02-10 11:54 a.m., gettor@torproject.org wrote:\n" + "This is how you can request a tor browser bundle link.\n" + "\n" + "Send an email to: gettor@torproject.org\n" + "\n" + "In the body of the email only write: .\n" + "\n" + "We only support windows, osx and linux as operating systems.\n" + "\n") + self.assertEqual(request["command"], "links") + self.assertEqual(request["language"], "fa") + self.assertEqual(request["platform"], "linux") + + request = ep.parse("From: \"silvia [hiro]\" \n" + "Subject: Re: [GetTor] Help Email\r\n Reply-To: hiro@torproject.org \nTo:" + "gettor@torproject.org\n" + "On 2020-02-10 11:54 a.m., gettor@torproject.org wrote:\n" + "> This is how you can request a tor browser bundle link.\n" + ">\n" + "> Send an email to: gettor@torproject.org\n" + ">\n" + "> In the body of the email only write: .\n" + ">\n" + "> We only support windows, osx and linux as operating systems.\n" + ">\n" + "linux fa\n\n") + self.assertEqual(request["command"], "links") + self.assertEqual(request["language"], "fa") + self.assertEqual(request["platform"], "linux") + request = ep.parse("From: \"silvia [hiro]\" \n" "Subject: Re: [GetTor] Help Email\r\n Reply-To: hiro@torproject.org \nTo:" "gettor@torproject.org\n"