From: Fred Drake Date: Wed, 28 Apr 1999 17:38:31 +0000 (+0000) Subject: Added test case that includes a comma in the full name. This tests X-Git-Tag: v1.6a1~1428 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5712fa92501c28d4de5fbf174cfc706eef11023e;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py index b8ae8c70ad73..a2b51513e449 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" + +test''', [('last, first', 'userid@foo.net'), + ])