Commit bc6edac8 authored by Barry Warsaw's avatar Barry Warsaw

test_utils_quote_unquote(): Test for unquote() properly

de-backslash-ifying.
parent 184d55a8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment