From 5712fa92501c28d4de5fbf174cfc706eef11023e Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 28 Apr 1999 17:38:31 +0000 Subject: 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. --- Lib/test/test_rfc822.py | 7 +++++++ 1 file changed, 7 insertions(+) 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" + +test''', [('last, first', 'userid@foo.net'), + ]) -- cgit v0.12