diff options
author | Fred Drake <fdrake@acm.org> | 1999-04-28 17:38:31 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-04-28 17:38:31 (GMT) |
commit | 5712fa92501c28d4de5fbf174cfc706eef11023e (patch) | |
tree | 17ed0f7091f65044cab7bb26786461f598944e20 | |
parent | ea07f2751aa5857882a4dbeaa396be3768e9a37f (diff) | |
download | cpython-5712fa92501c28d4de5fbf174cfc706eef11023e.zip cpython-5712fa92501c28d4de5fbf174cfc706eef11023e.tar.gz cpython-5712fa92501c28d4de5fbf174cfc706eef11023e.tar.bz2 |
Added test case that includes a comma in the full name. This tests
for an old bug that's been gone a while, but was still documented
until a few minutes from now.
-rw-r--r-- | Lib/test/test_rfc822.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py index b8ae8c7..a2b5151 100644 --- a/Lib/test/test_rfc822.py +++ b/Lib/test/test_rfc822.py @@ -80,3 +80,10 @@ test''', [('', ''), ('', 'dd47@mail.xxx.edu'), ('', '_at_hmhq@hdq-mdm1-imgout.companay.com') ]) + +# This exercises the old commas-in-a-full-name bug, which should be doing the +# right thing in recent versions of the module. +test('''To: "last, first" <userid@foo.net> + +test''', [('last, first', 'userid@foo.net'), + ]) |