[Python-checkins] python/dist/src/Lib/email/test test_email.py,1.33,1.34
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Fri, 07 Mar 2003 07:35:51 -0800
Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1:/tmp/cvs-serv13009
Modified Files:
test_email.py
Log Message:
test_string_headerinst_eq(): Another Jason test :)
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** test_email.py 6 Mar 2003 20:31:02 -0000 1.33
--- test_email.py 7 Mar 2003 15:35:47 -0000 1.34
***************
*** 781,784 ****
--- 781,798 ----
""")
+ def test_string_headerinst_eq(self):
+ h = '<15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> (David Bremner\'s message of "Thu, 6 Mar 2003 13:58:21 +0100")'
+ msg = Message()
+ msg['Received-1'] = Header(h, header_name='Received-1',
+ continuation_ws='\t')
+ msg['Received-2'] = h
+ self.assertEqual(msg.as_string(), """\
+ Received-1: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de>
+ (David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100")
+ Received-2: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de>
+ (David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100")
+
+ """)
+