comparison test/test_mailsplit.py @ 310:0ec8a9f1cbe6

[SF#473125]: Paragraph in e-mails
author Richard Jones <richard@users.sourceforge.net>
date Sun, 21 Oct 2001 03:35:30 +0000
parents 18134bffab37
children 6ce3af6a08ca
comparison
equal deleted inserted replaced
309:f193e0a1b9a5 310:0ec8a9f1cbe6
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: test_mailsplit.py,v 1.5 2001-08-07 00:24:43 richard Exp $ 18 # $Id: test_mailsplit.py,v 1.6 2001-10-21 03:35:13 richard Exp $
19 19
20 import unittest, cStringIO 20 import unittest, cStringIO
21 21
22 from roundup.mailgw import parseContent 22 from roundup.mailgw import parseContent
23 23
81 s = '''testing''' 81 s = '''testing'''
82 summary, content = parseContent(s) 82 summary, content = parseContent(s)
83 self.assertEqual(summary, 'testing') 83 self.assertEqual(summary, 'testing')
84 self.assertEqual(content, 'testing') 84 self.assertEqual(content, 'testing')
85 85
86 def testParagraphs(self):
87 s = '''testing\n\ntesting\n\ntesting'''
88 summary, content = parseContent(s)
89 print `summary`, `content`
90 self.assertEqual(summary, 'testing')
91 self.assertEqual(content, 'testing\n\ntesting\n\ntesting')
92
86 def testEmpty(self): 93 def testEmpty(self):
87 s = '' 94 s = ''
88 summary, content = parseContent(s) 95 summary, content = parseContent(s)
89 self.assertEqual(summary, '') 96 self.assertEqual(summary, '')
90 self.assertEqual(content, '') 97 self.assertEqual(content, '')
93 return unittest.makeSuite(MailsplitTestCase, 'test') 100 return unittest.makeSuite(MailsplitTestCase, 'test')
94 101
95 102
96 # 103 #
97 # $Log: not supported by cvs2svn $ 104 # $Log: not supported by cvs2svn $
105 # Revision 1.5 2001/08/07 00:24:43 richard
106 # stupid typo
107 #
98 # Revision 1.4 2001/08/07 00:15:51 richard 108 # Revision 1.4 2001/08/07 00:15:51 richard
99 # Added the copyright/license notice to (nearly) all files at request of 109 # Added the copyright/license notice to (nearly) all files at request of
100 # Bizar Software. 110 # Bizar Software.
101 # 111 #
102 # Revision 1.3 2001/08/05 07:06:25 richard 112 # Revision 1.3 2001/08/05 07:06:25 richard

Roundup Issue Tracker: http://roundup-tracker.org/