Barry Warsaw
f8b3e1f76e
A couple of new parsedate test cases.
2003-05-08 03:34:01 +00:00
Barry Warsaw
0822ff7cca
Get rid of some hard coded tabs
2003-04-24 15:58:47 +00:00
Barry Warsaw
9c505ae3da
test_whitespace_eater_unicode_2(): Test case for SF bug #710498 .
2003-03-30 20:47:22 +00:00
Barry Warsaw
240754933e
test_long_lines_with_different_header(): Another test from Jason.
2003-03-17 20:35:14 +00:00
Barry Warsaw
ab75840cd0
test_getaddresses_nasty(): A test for mimelib SF bug # 697641.
2003-03-17 18:36:37 +00:00
Barry Warsaw
ea8f6fa094
test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.
2003-03-12 03:14:11 +00:00
Barry Warsaw
f9e0bd8df8
Adjust tests for no newline appending to MIMEText.__init__()'s _text
...
argument.
2003-03-11 05:10:46 +00:00
Barry Warsaw
bd757ba1ed
Adjust tests for no newline appending to MIMEText.__init__()'s _text
...
argument.
2003-03-11 05:04:54 +00:00
Barry Warsaw
3840b49d9c
test_get_decoded_uu_payload(): A new test for
...
Content-Transfer-Encoding: x-uuencode
2003-03-11 04:31:37 +00:00
Barry Warsaw
a2e64702ca
test_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft.
2003-03-10 19:18:34 +00:00
Barry Warsaw
513af770d7
Fix base class
2003-03-10 17:00:43 +00:00
Barry Warsaw
e1ff4bbce6
Use ndiffAssertEqual in a couple of places for better error reporting.
2003-03-10 16:59:34 +00:00
Barry Warsaw
3efb651ea3
test_broken_base64_payload(): Test for crash in low-level binascii
...
module when decoding a message with broken base64.
2003-03-10 16:09:51 +00:00
Barry Warsaw
796376338f
test_another_long_multiline_header(): Yet another formatting test.
2003-03-10 15:11:29 +00:00
Barry Warsaw
28ffcef4e6
test_long_unbreakable_lines_with_continuation(): Another funky example
...
from Jason Mastaler :)
2003-03-07 23:23:04 +00:00
Barry Warsaw
21fcc4e287
test_rfc2231_no_language_or_charset(): RFC 2231 allows leaving out
...
both the charset and language without including any single quotes.
2003-03-07 22:45:55 +00:00
Barry Warsaw
bf7e241397
whitespace normalization
2003-03-07 15:58:51 +00:00
Barry Warsaw
82783e6f33
test_string_headerinst_eq(): Another Jason test :)
2003-03-07 15:35:47 +00:00
Barry Warsaw
f0d3585669
test_long_received_header(): Another test case for folding long
...
Received headers (first on semis then on whitespace), given by Jason
Mastaler.
2003-03-06 20:31:02 +00:00
Barry Warsaw
c79ffb022f
test_whitespace_eater_unicode(): Test of the last outstanding bug in
...
SF # 640110.
2003-03-06 16:11:14 +00:00
Barry Warsaw
28ffcb6f84
test_rfc2047_multiline(): Test case for SF bug #640110 .
2003-03-06 06:38:29 +00:00
Barry Warsaw
10627ba9b8
Merge of the folding-reimpl-branch. Specific changes,
...
Update tests for email 2.5.
2003-03-06 05:41:07 +00:00
Barry Warsaw
3d597812b6
Jack complained that on test_crlf_separation() was failing on MacOS9
...
because the test file, msg_26.txt which has \r\n line endings, was
getting munged by cvs, which knows to do line ending conversions for
text files. But we want \r\n to be preserved on all platforms, so we
cvs admin'd the file to be -kb (binary), which means we have to open
the file in binary mode to preserve these line ends. Hopefully this
will be the end of the thrashing on this issue (but probably not).
Test passes on *nix now, and Tim confirms it passes on Windows. We'll
leave it to Jack to test MacOS.
2003-01-02 22:48:36 +00:00
Barry Warsaw
10ee7a7f15
test_bad_8bit_header(): Tests for optional argument `errors'. See SF
...
bug #648119 .
2002-12-30 19:14:38 +00:00
Barry Warsaw
f29ffbdbf5
TestMIMEAudio.setUp(): Use the email package's copy of the audio test
...
file, needed because some binary distros (read RPMs) don't include the
test module in their standard Python package. This eliminates an
external dependency and closes SF bug # 650441.
2002-12-30 17:45:02 +00:00
Barry Warsaw
c99c08c764
A copy of the audio test file from Lib/test, needed because some
...
binary distros (read RPMs) don't include the test module in their
standard Python package. This eliminates an external dependency and
closes SF bug # 650441.
2002-12-30 17:44:27 +00:00
Barry Warsaw
795833fbc6
test_parsedate_compact(): A test for optional FWS between the comma
...
and the day number in an RFC 2822 date specification. See bug
#552345 .
2002-12-30 17:20:53 +00:00
Barry Warsaw
edb59c1ee8
test_name_with_dots(): A new test to ensure that we're implementing
...
RFC 2822's rules w.r.t. dots in the realname part of address fields.
2002-12-30 16:19:52 +00:00
Barry Warsaw
a0a00761a5
test_no_separating_blank_line(): A test for SF bug #633527 , no
...
separating blank line between a header block and body text.
Tests both lax and strict parsing.
2002-11-05 21:36:17 +00:00
Barry Warsaw
847fdbbe71
A message with no separating blank line between the headers and the
...
body. A test message for SF bug #633527 .
2002-11-05 21:29:47 +00:00
Barry Warsaw
48b0a1c603
test_text_plain_in_a_multipart_digest(): A test of the fix for SF bug
...
#631350 , where a subobject in a multipart/digest isn't a
message/rfc822.
2002-11-05 21:04:52 +00:00
Barry Warsaw
00e6a02ef8
Test case, distilled from SF bug #631350 , where a subobject in a
...
multipart/digest isn't a message/rfc822. This is legal, but counter
to recommended practice in RFC 2046, $5.1.5.
2002-11-05 20:53:18 +00:00
Barry Warsaw
4111804548
test_body_encoding(): a new test for Charset.body_encode(), especially
...
one that tests the obscure bug reported in SF # 625509.
2002-10-21 05:43:58 +00:00
Barry Warsaw
34aa44538d
test_body_encoding(): a new test
2002-10-21 05:31:08 +00:00
Barry Warsaw
a74771c0b9
Two new tests for splitting (or not splitting) 8-bit header data.
2002-10-14 15:26:17 +00:00
Barry Warsaw
dc8087b26e
New tests to verify that charsets are case insensitive, and that by
...
default get_body_encoding() cannot be SHORTEST.
2002-10-10 15:14:22 +00:00
Barry Warsaw
08c82b8086
openfile(): Go back to opening the files in text mode. This undoes
...
the change in revision 1.11 (test_email.py) in response to SF bug
#609988 . We now think that was the wrong fix and that WinZip was the
real culprit there.
2002-10-07 17:27:55 +00:00
Barry Warsaw
0ac885e821
test__all__(): Fix the import list.
2002-10-01 17:57:06 +00:00
Barry Warsaw
d20b66537c
The ansi_x3.4_1968 encoding is an alias for ascii, but isn't known in
...
Python 2.1.3. However it's required by the email tests suite, so poke
it into the encodings aliases if it's missing. The is apparently the
approved API for doing so.
Now we can remove the hexversion shortcircuits in the test suite.
2002-09-30 15:23:17 +00:00
Barry Warsaw
d63071b05f
Make the tests pass under Python 2.1 but only by cheating. Python 2.1
...
doesn't know about the ansi-x3.4-1968 charset so skip two tests that
rely on that (msg_32.txt and msg_33.txt).
2002-09-28 21:22:52 +00:00
Barry Warsaw
eecdc742f5
Add a test for SHORTEST encoding of utf-8 headers, and also update
...
some of the test values which change because of this.
2002-09-28 21:04:19 +00:00
Barry Warsaw
09f7424f3a
test_unicode_error(): Comment this test out, since we still have
...
controversy.
2002-09-26 17:21:53 +00:00
Barry Warsaw
9c74569ec9
Fixing some RFC 2231 related issues as reported in the Spambayes
...
project, and with assistance from Oleg Broytmann. Specifically,
added some new tests to make sure we handle RFC 2231 encoded
parameters correctly. Two new data files were added which contain RFC
2231 encoded parameters.
2002-09-26 17:21:02 +00:00
Barry Warsaw
40363b63f0
Open the test files in binary mode so the \r\n files won't cause
...
failures on Windows. Closes SF bug # 609988.
2002-09-18 22:17:57 +00:00
Barry Warsaw
bc6edac8df
test_utils_quote_unquote(): Test for unquote() properly
...
de-backslash-ifying.
2002-09-11 02:31:24 +00:00
Barry Warsaw
24d45df3f2
test_splitting_first_line_only_is_long(): New test for SF bug #601392 ,
...
broken wrapping of long ASCII headers.
2002-09-10 15:46:44 +00:00
Barry Warsaw
dad90c202a
A sample message with broken MIME boundaries.
2002-09-10 15:43:30 +00:00
Barry Warsaw
e99e2f53e7
test_set_param(), test_del_param(): Test RFC 2231 encoding support by
...
Oleg Broytmann in SF patch #600096 . Whitespace normalized by Barry.
2002-09-06 03:56:26 +00:00
Barry Warsaw
470288c54e
test_mondo_message(): "binary" is not a legal content type, so with
...
the previous RFC 2045, $5.2 repair to get_content_type() this
subpart's type will now be text/plain.
2002-09-06 03:41:27 +00:00
Barry Warsaw
58fb61cce5
test_replace_header(): New test for Message.replace_header().
2002-09-06 03:39:59 +00:00