summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43651: PEP 597: Fix test_email (GH-25158)Inada Naoki2021-04-051-1/+1
|
* Merge with 3.5Steve Dower2016-09-091-2/+10
|\
| * #28047: Fix calculation of base64 line length.R David Murray2016-09-091-2/+10
| | | | | | | | | | This is buggy in the old email code as well, but it doesn't affect anything there because only the default line length is ever used there.
* | Issue #23277: Remove unused sys and os importsBerker Peksag2016-04-241-1/+0
|/ | | | Patch by Jon Dufresne.
* Issue #23943: Fix typos. Patch by Piotr Kasprzyk.Berker Peksag2015-04-141-1/+1
|
* Issue #22002: Make full use of test discovery in test sub-packages.Zachary Ware2014-07-231-19/+4
| | | | | | Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery.
* #18891: Complete new provisional email API.R David Murray2013-10-171-1/+25
| | | | | | | | | | | | 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.
* Don't use metaclasses when class decorators can do the job.R David Murray2012-05-311-34/+32
| | | | | Thanks to Nick Coghlan for pointing out that I'd forgotten about class decorators.
* Make parameterized tests in email less hackish.R David Murray2012-05-311-0/+79
| | | | | Or perhaps more hackish, depending on your perspective. But at least this way it is now possible to run the individual tests using the unittest CLI.
* #12586: add provisional email policy with new header parsing and folding.R David Murray2012-05-251-0/+6
| | | | | | | | | | | | | | When the new policies are used (and only when the new policies are explicitly used) headers turn into objects that have attributes based on their parsed values, and can be set using objects that encapsulate the values, as well as set directly from unicode strings. The folding algorithm then takes care of encoding unicode where needed, and folding according to the highest level syntactic objects. With this patch only date and time headers are parsed as anything other than unstructured, but that is all the helper methods in the existing API handle. I do plan to add more parsers, and complete the set specified in the RFC before the package becomes stable.
* #14731: refactor email policy framework.R David Murray2012-05-251-1/+13
| | | | | | | | | | | | | | | | | This patch primarily does two things: (1) it adds some internal-interface methods to Policy that allow for Policy to control the parsing and folding of headers in such a way that we can construct a backward compatibility policy that is 100% compatible with the 3.2 API, while allowing a new policy to implement the email6 API. (2) it adds that backward compatibility policy and refactors the test suite so that the only differences between the 3.2 test_email.py file and the 3.3 test_email.py file is some small changes in test framework and the addition of tests for bugs fixed that apply to the 3.2 API. There are some additional teaks, such as moving just the code needed for the compatibility policy into _policybase, so that the library code can import only _policybase. That way the new code that will be added for email6 will only get imported when a non-compatibility policy is imported.
* #8315: add automatic unittest test discovery in test.test_emailR David Murray2012-03-131-0/+10
|
* #13012: use splitlines(keepends=True/False) instead of splitlines(0/1).Ezio Melotti2011-09-281-1/+1
|
* #11731: simplify/enhance parser/generator API by introducing policy objects.R David Murray2011-04-181-0/+2
| | | | | | | | This new interface will also allow for future planned enhancements in control over the parser/generator without requiring any additional complexity in the parser/generator API. Patch reviewed by Éric Araujo and Barry Warsaw.
* Use stock assertEqual instead of custom ndiffAssertEqual.R David Murray2011-04-101-9/+1
| | | | Eventually I'll actually replace the calls in the tests themselves.
* Move assertBytesEqual to base test class, improve it, and hook into assertEqualR David Murray2011-03-311-0/+11
|
* Move infrastructure into __init__ to lay groundwork for splitting test_email.R David Murray2011-03-311-0/+27
| | | | | The split probably won't happen for a while, but I might as well lay the groundwork now since I'll be adding new test modules before too long.
* Correctly move email package tests to Lib/test.R David Murray2011-03-211-0/+13