diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-10-17 02:48:40 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-10-17 02:48:40 (GMT) |
commit | 3da240fd01e02a31e516847ba865a9f56d7cfcbc (patch) | |
tree | 056628df84b2e949fb793d75235e38766a16fbcc /Lib/test/test_email/test_policy.py | |
parent | 1a1628819779110854d4e1ab490db2cab80e26b4 (diff) | |
download | cpython-3da240fd01e02a31e516847ba865a9f56d7cfcbc.zip cpython-3da240fd01e02a31e516847ba865a9f56d7cfcbc.tar.gz cpython-3da240fd01e02a31e516847ba865a9f56d7cfcbc.tar.bz2 |
#18891: Complete new provisional email API.
This adds EmailMessage and, MIMEPart subclasses of Message
with new API methods, and a ContentManager class used by
the new methods. Also a new policy setting, content_manager.
Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka,
and reflects their feedback.
I will ideally add some examples of using the new API to the
documentation before the final release.
Diffstat (limited to 'Lib/test/test_email/test_policy.py')
-rw-r--r-- | Lib/test/test_email/test_policy.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_email/test_policy.py b/Lib/test/test_email/test_policy.py index 983bd49..06ad5f2 100644 --- a/Lib/test/test_email/test_policy.py +++ b/Lib/test/test_email/test_policy.py @@ -30,6 +30,7 @@ class PolicyAPITests(unittest.TestCase): 'raise_on_defect': False, 'header_factory': email.policy.EmailPolicy.header_factory, 'refold_source': 'long', + 'content_manager': email.policy.EmailPolicy.content_manager, }) # For each policy under test, we give here what we expect the defaults to |