Esempio n. 1
0
    def test_quote_reply_1(self):
        self.assertEqual(
            quote(
"""Hello world.

On 2012-10-16 at 17:02 , Someone <*****@*****.**> wrote:

> Some quoted text
"""),
            [(True, 'Hello world.\n\nOn 2012-10-16 at 17:02 , Someone <*****@*****.**> wrote:'),
             (False, '\n> Some quoted text\n')]
        )
Esempio n. 2
0
    def test_quote_forward_2(self):
        self.assertEqual(
            quote(
"""Hello world.

---------- Forwarded message ----------
From: Someone <*****@*****.**>
Subject: The email

Some quoted text.
"""),
            [(True, 'Hello world.\n\n---------- Forwarded message ----------'),
             (False, 'From: Someone <*****@*****.**>\nSubject: The email\n\nSome quoted text.\n')]
        )
Esempio n. 3
0
    def test_quote_forward_3(self):
        self.assertEqual(
            quote(
"""Hello world.

> Begin forwarded message:
>
> From: Someone <*****@*****.**>
> Subject: The email
>
> Some quoted text.
"""),
            [(True, 'Hello world.\n\n> Begin forwarded message:'),
             (False, '>\n> From: Someone <*****@*****.**>\n> Subject: The email\n>\n> Some quoted text.\n')]
        )