test_utils_quote_unquote(): Test for unquote() properly
de-backslash-ifying.
This commit is contained in:
parent
184d55a897
commit
bc6edac8df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue