diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-07-12 20:19:41 (GMT) |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-07-12 20:19:41 (GMT) |
| commit | 8c7dde3bd9f502247a6722baefda81afc5ba3ffc (patch) | |
| tree | 47394e199e621e53e6bdcf6de436b2e243e06906 /Lib/test/test_email/test_headerregistry.py | |
| parent | c07aa9e41f17c0821b811c52865a527785877287 (diff) | |
| parent | 8863bfe61892f9bf941f76db318ed03b8fc240ed (diff) | |
| download | cpython-8c7dde3bd9f502247a6722baefda81afc5ba3ffc.zip cpython-8c7dde3bd9f502247a6722baefda81afc5ba3ffc.tar.gz cpython-8c7dde3bd9f502247a6722baefda81afc5ba3ffc.tar.bz2 | |
Merged upstream changes.
Diffstat (limited to 'Lib/test/test_email/test_headerregistry.py')
| -rw-r--r-- | Lib/test/test_email/test_headerregistry.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Lib/test/test_email/test_headerregistry.py b/Lib/test/test_email/test_headerregistry.py index 80f1c02..f754a32 100644 --- a/Lib/test/test_email/test_headerregistry.py +++ b/Lib/test/test_email/test_headerregistry.py @@ -158,6 +158,10 @@ class TestUnstructuredHeader(TestHeaderBase): '=?utf-8?q?=C3=89ric?=', 'Éric'), + 'rfc2047_quopri_with_regular_text': ( + 'The =?utf-8?q?=C3=89ric=2C?= Himself', + 'The Éric, Himself'), + } @@ -1119,6 +1123,26 @@ class TestAddressHeader(TestHeaderBase): 'example.com', None), + 'rfc2047_atom_is_decoded': + ('=?utf-8?q?=C3=89ric?= <foo@example.com>', + [], + 'Éric <foo@example.com>', + 'Éric', + 'foo@example.com', + 'foo', + 'example.com', + None), + + 'rfc2047_atom_in_phrase_is_decoded': + ('The =?utf-8?q?=C3=89ric=2C?= Himself <foo@example.com>', + [], + '"The Éric, Himself" <foo@example.com>', + 'The Éric, Himself', + 'foo@example.com', + 'foo', + 'example.com', + None), + } # XXX: Need many more examples, and in particular some with names in |
