summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-09-11 02:31:24 (GMT)
committerBarry Warsaw <barry@python.org>2002-09-11 02:31:24 (GMT)
commitbc6edac8dfc01360ee98541c8a0374bb91753dc6 (patch)
tree9769508c782209c85cf25e64fa3cfd548856f9b1
parent184d55a8970142a18e2c9344b8bc97756d06d9f7 (diff)
downloadcpython-bc6edac8dfc01360ee98541c8a0374bb91753dc6.zip
cpython-bc6edac8dfc01360ee98541c8a0374bb91753dc6.tar.gz
cpython-bc6edac8dfc01360ee98541c8a0374bb91753dc6.tar.bz2
test_utils_quote_unquote(): Test for unquote() properly
de-backslash-ifying.
-rw-r--r--Lib/email/test/test_email.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index 0fe304b..95eb0e8 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