]> granicus.if.org Git - python/commitdiff
Added test case that includes a comma in the full name. This tests
authorFred Drake <fdrake@acm.org>
Wed, 28 Apr 1999 17:38:31 +0000 (17:38 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 28 Apr 1999 17:38:31 +0000 (17:38 +0000)
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

index b8ae8c70ad73fa9d5d7b9b8cbf824ba8784359a1..a2b51513e44938563182cc01421a305c33f63457 100644 (file)
@@ -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'),
+          ])