summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_rfc822.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.