[Python-checkins] python/dist/src/Lib/email/test test_email.py,1.46,1.47
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
2003年3月17日 12:35:20 -0800
- Previous message: [Python-checkins] python/dist/src/Modules _hotshot.c,1.33,1.34 arraymodule.c,2.85,2.86 itertoolsmodule.c,1.8,1.9 xreadlinesmodule.c,1.14,1.15
- Next message: [Python-checkins] python/dist/src/Lib/email Header.py,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1:/tmp/cvs-serv21771
Modified Files:
test_email.py
Log Message:
test_long_lines_with_different_header(): Another test from Jason.
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** test_email.py 17 Mar 2003 18:36:37 -0000 1.46
--- test_email.py 17 Mar 2003 20:35:14 -0000 1.47
***************
*** 842,845 ****
--- 842,861 ----
''')
+ def test_long_lines_with_different_header(self):
+ eq = self.ndiffAssertEqual
+ h = """\
+ List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
+ <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>"""
+ msg = Message()
+ msg['List'] = h
+ msg['List'] = Header(h, header_name='List')
+ eq(msg.as_string(), """\
+ List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
+ <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>
+ List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
+ <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>
+
+ """)
+
- Previous message: [Python-checkins] python/dist/src/Modules _hotshot.c,1.33,1.34 arraymodule.c,2.85,2.86 itertoolsmodule.c,1.8,1.9 xreadlinesmodule.c,1.14,1.15
- Next message: [Python-checkins] python/dist/src/Lib/email Header.py,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]