summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_rfc822.py
Commit message (Collapse)AuthorAgeFilesLines
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-2/+2
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-2/+2
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-2/+2
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-10/+10
|
* add py3k warnings to rfc822Benjamin Peterson2008-06-121-1/+2
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* Port forward from 2.4 branch:Barry Warsaw2006-05-011-0/+10
| | | | | | | | | | Patch #1464708 from William McVey: fixed handling of nested comments in mail addresses. E.g. "Foo ((Foo Bar)) <foo@example.com>" Fixes for both rfc822.py and email package. This patch needs to be back ported to Python 2.3 for email 2.5.
* Bug #1030125: rfc822 __iter__ problemRaymond Hettinger2004-09-221-0/+11
| | | | Add iteration support to the Message class.
* Resolution of bug #997368, "strftime() backward compatibility".Barry Warsaw2004-08-071-1/+1
| | | | | | | | | Specifically, time.strftime() no longer accepts a 0 in the yday position of a time tuple, since that can crash some platform strftime() implementations. parsedate_tz(): Change the return value to return 1 in the yday position. Update tests in test_rfc822.py and test_email.py
* test_quote_unquote(): Added a test for the rfc822.unquote() patchBarry Warsaw2002-09-111-0/+6
| | | | (adapted from Quinn Dunkan's mimelib SF patch #573204).
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* SF bug 558179.Guido van Rossum2002-06-051-1/+1
| | | | | Change default for get() back to None. Will backport to 2.2.1.
* parseaddr(): Fixed in the same way that Message.getaddrlist() wasBarry Warsaw2002-05-231-0/+9
| | | | fixed (re: SF bug #555035). Include a unittest.
* Message.getaddrlist(): Use the AddressList.addresslist attributeBarry Warsaw2002-05-211-1/+20
| | | | | | | | instead of calling the getaddrlist() method, since the latter doesn't work with multiple calls (it will return the empty list for the second and subsequent calls). Closes SF bug #555035. Include a unittest.
* A specific test for bug #481221, getaddrlist() failing on longBarry Warsaw2001-11-131-0/+8
| | | | addresses. Commented out because it still takes too long to run.
* Add tests for bug #478115, parsedate_tz() IndexError when a Date:Barry Warsaw2001-11-131-0/+8
| | | | field exists with an empty value.
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+7
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* test_basic(): Add a test for "person@dom.ain (User J. Person)" whichBarry Warsaw2001-07-161-0/+12
| | | | | | | | was already correctly parsed (contrary to a comment in Mailman). test_rfc2822_phrases(): RFC 2822 now requires that we allow `.' in phrases, which means we must accept dots in unquoted realname parts. Add a test to check the change in rfc822.py 1.58.
* Re-write the rfc822 tests to use PyUnit.Fred Drake2001-05-221-138/+162
| | | | | Update to reflect using "" as the default value for the second parameter to the get() method.
* Add tests for the new .get() and .setdefault() methods of rfc822.MessageFred Drake2001-05-221-1/+19
| | | | objects.
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Make reindent happy, but not in the way it planned!Fred Drake2000-10-231-3/+3
|
* Add a test for SF bug #110621; stripping square brackets off ofBarry Warsaw2000-09-251-0/+4
| | | | addresses with domain literals.
* added a test for "To: :" patchBarry Warsaw1999-07-121-0/+7
|
* Add the test case provided by Barry Scott for his patch.Guido van Rossum1999-06-151-0/+5
|
* Regression test for date format code, by Mike Meyer.Guido van Rossum1999-05-031-0/+21
| | | | (I tweaked it slightly so examples are allowed to have no date too.)
* Added test case that includes a comma in the full name. This testsFred Drake1999-04-281-0/+7
| | | | | for an old bug that's been gone a while, but was still documented until a few minutes from now.
* Test the rfc822.py module. Contains just a few simple cases, and someBarry Warsaw1999-01-141-0/+82
troublesome ones encountered on the c.l.py list.