[Python-checkins] python/dist/src/Lib/test test_rfc822.py,1.19,1.20

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Tue, 10 Sep 2002 19:32:59 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv23144

Modified Files:
	test_rfc822.py 
Log Message:
test_quote_unquote(): Added a test for the rfc822.unquote() patch
(adapted from Quinn Dunkan's mimelib SF patch #573204).


Index: test_rfc822.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_rfc822.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** test_rfc822.py	23 Jul 2002 19:04:00 -0000	1.19
--- test_rfc822.py	11 Sep 2002 02:32:57 -0000	1.20
***************
*** 223,226 ****
--- 223,232 ----
             ('Cynthia Person', 'cperson@dom.ain'))
  
+     def test_quote_unquote(self):
+         eq = self.assertEqual
+         eq(rfc822.quote('foo\\wacky"name'), 'foo\\\\wacky\\"name')
+         eq(rfc822.unquote('"foo\\\\wacky\\"name"'), 'foo\\wacky"name')
+ 
+ 
  def test_main():
      test_support.run_unittest(MessageTestCase)