mirror of
https://github.com/python/cpython.git
synced 2026-05-23 04:43:06 -04:00
test_utils_quote_unquote(): Test for unquote() properly
de-backslash-ifying.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user