[Python-checkins] python/dist/src/Lib/email/test test_email.py,1.9,1.10
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Tue, 10 Sep 2002 19:31:27 -0700
Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory usw-pr-cvs1:/tmp/cvs-serv22797
Modified Files:
test_email.py
Log Message:
test_utils_quote_unquote(): Test for unquote() properly
de-backslash-ifying.
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_email.py 10 Sep 2002 15:46:44 -0000 1.9
--- test_email.py 11 Sep 2002 02:31:24 -0000 1.10
***************
*** 1674,1677 ****
--- 1674,1684 ----
('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')
+