[Python-checkins] python/dist/src/Lib/email/test test_email.py,1.32,1.33

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Thu, 06 Mar 2003 12:31:07 -0800


Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1:/tmp/cvs-serv21234

Modified Files:
	test_email.py 
Log Message:
test_long_received_header(): Another test case for folding long
Received headers (first on semis then on whitespace), given by Jason
Mastaler.


Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** test_email.py	6 Mar 2003 16:11:14 -0000	1.32
--- test_email.py	6 Mar 2003 20:31:02 -0000	1.33
***************
*** 766,769 ****
--- 766,784 ----
   =?iso-8859-1?q?egen_die_rotierenden_Klingen_bef=F6rdert=2E_?=""")
  
+     def test_long_received_header(self):
+         h = 'from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP; Wed, 05 Mar 2003 18:10:18 -0700'
+         msg = Message()
+         msg['Received-1'] = Header(h, continuation_ws='\t')
+         msg['Received-2'] = h
+         self.assertEqual(msg.as_string(), """\
+ Received-1: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by
+ 	hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP;
+ 	Wed, 05 Mar 2003 18:10:18 -0700
+ Received-2: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by
+ 	hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP;
+ 	Wed, 05 Mar 2003 18:10:18 -0700
+ 
+ """)
+