test_utils_quote_unquote(): Test for unquote() properly

de-backslash-ifying.
This commit is contained in:
Barry Warsaw 2002-09-11 02:31:24 +00:00
parent 184d55a897
commit bc6edac8df
1 changed files with 7 additions and 0 deletions

View File

@ -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