| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
supervision of regrtest.py. Will backport to 2.2.2.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(i.e. email.test), so move the guts of them here from Lib/test. The
latter directory will retain stubs to run the email.test tests using
Python's standard regression test.
test_email_torture.py is a torture tester which will not run under
Python's test suite because I don't want to commit megs of data to
that project (it will fail cleanly there). When run under the mimelib
project it'll stress test the package with megs of message samples
collected from various locations in the wild.
|
|
|
|
|
|
|
| |
.splitlines() on them, since they may be Header instances.
test_multilingual(), test_header_ctor_default_args(): New tests of
make_header() and that Header can take all default arguments.
|
|
|
|
|
|
|
|
|
|
| |
ndiff function, so just alias it to assertEqual in that case.
Various: make sure all openfile()/read()'s are wrapped in
try/finally's so the file gets closed.
A bunch of new tests checking the corner cases for multipart/digest
and message/rfc822.
|
| |
|
|
|
|
| |
New test cases.
|
| |
|
|
|
|
|
|
|
| |
folding. Note that some of the Japanese tests have changed, but I
don't really know if they are correct or not. :(
Someone with Japanese and RFC 2047 expertise, please take a look!
|
|
|
|
| |
Also, adjust to the new message/rfc822 tree layout.
|
|
|
|
|
|
| |
the AddressList.addresslist attribute directly.
Also, add a test case for the email.Utils.getaddresses() interface.
|
|
|
|
| |
and explicit maxlinelen arguments to the Header constructor.
|
| |
|
|
|
|
| |
intended whitespace.
|
|
|
|
|
| |
tab characters, so reverting the whitespace normalization. Barry,
please repair this.
|
| |
|
|
|
|
|
| |
regrtest framework. Keep the original standalone-unittest
scaffolding (i.e. suite() and __main__).
|
|
|
|
|
|
|
|
|
| |
non-us-ascii character sets in headers and bodies. Some API changes
(with DeprecationWarnings for the old APIs). Better RFC-compliant
implementations of base64 and quoted-printable.
Updated test cases. Documentation updates to follow (after I finish
writing them ;).
|
|
|
|
| |
with only one subpart.
|
|
|
|
|
| |
Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty
string. Built on rfc822, this used to return None.
|
|
|
|
|
|
| |
twice! Fixed this by avoiding the import of test_email, which loads
the module a second time in that situation, and fiddled the __main__
section to resemble other test suites using unittest.
|
|
|
|
|
|
|
|
| |
More changes to the formatdate epoch test: the Mac epoch is in
localtime, so east of GMT it falls in 1903:-( Changed the test to
obtain the epoch in both local time and GMT, and do the right
thing in the comparisons. As a sanity measure also check that
day/month is Jan 1.
|
|
|
|
|
| |
test_formatdate_zoneoffsets() => test_formatdate_localtime(): Do the
sign corrected calculation of the zone offset.
|
|
|
|
|
|
|
|
|
|
|
| |
use the correct way to test for epoch, by looking at the year
component of gmtime(0). Add clause for Unix epoch and Mac epoch (Tim,
what is Windows epoch?).
Also, get rid of the strptime() test, it was way too problematic given
that strptime() is missing on many platforms and issues with locales.
Instead, simply test that formatdate() gets the numeric timezone
calculation correct for the altzone and timezone.
|
|
|
|
|
| |
which has a different epoch than *nix. Jack may need to twiddle the
details.
|
|
|
|
| |
field exists with an empty value.
|
| |
|
|
|
|
| |
strptime() -- I'm too lazy to code it otherwise.
|
| |
|
|
|
|
|
|
|
|
| |
the separating semi-colon shows up on a continuation line (legal, but
weird).
Bug reported and fixed by Matthew Cowles. Test case and sample email
included.
|
|
|
|
|
| |
TestMIMEMessage.test_epilogue(), TestIdempotent.test_preamble_epilogue():
Test cases for SF bug #472481.
|
| |
|
|
|
|
|
|
|
|
|
| |
test_no_semis_header_splitter(): This actually should still split.
test_no_split_long_header(): An example of an unsplittable line.
test_no_semis_header_splitter(): Test for SF bug # 471918, Generator
splitting long headers.
|
|
|
|
| |
has no Content-Type: header, it should be treated as text/plain.
|
| |
|
| |
|
|
|
|
| |
message with multiple CC: fields, used in the get_all() test.
|
|
|
|
| |
"listify an iterator".
|
|
|
|
| |
into tests/data/msg_*.txt files.
|
|
|
|
| |
normalization. Now uses \t in strings instead of hard tabs.
|
| |
|
|
|
|
| |
added some new tests of message/delivery-status content type messages.
|
|
|