From: Barry Warsaw <barry@python.org>
Date: Wed, 11 Sep 2002 02:31:24 +0000 (+0000)
Subject: test_utils_quote_unquote(): Test for unquote() properly
X-Git-Tag: v2.3c1~4142
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc6edac8dfc01360ee98541c8a0374bb91753dc6;p=python

test_utils_quote_unquote(): Test for unquote() properly
de-backslash-ifying.
---

diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index 0fe304b332..95eb0e86b7 100644
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -1673,6 +1673,13 @@ class TestMiscellaneous(unittest.TestCase):
            [('Al Person', 'aperson@dom.ain'),
             ('Bud Person', 'bperson@dom.ain')])
 
+    def test_utils_quote_unquote(self):
+        eq = self.assertEqual
+        msg = Message()
+        msg.add_header('content-disposition', 'attachment',
+                       filename='foo\\wacky"name')
+        eq(msg.get_filename(), 'foo\\wacky"name')
+
 
 
 # Test the iterator/generators