Mercurial > p > roundup > code
comparison test/test_mailsplit.py @ 317:6ce3af6a08ca
Removed debug print from mailsplit test.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 23 Oct 2001 00:57:32 +0000 |
| parents | 0ec8a9f1cbe6 |
| children | 256776bfdfc5 |
comparison
equal
deleted
inserted
replaced
| 316:c0ca7f35e0c5 | 317:6ce3af6a08ca |
|---|---|
| 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.6 2001-10-21 03:35:13 richard Exp $ | 18 # $Id: test_mailsplit.py,v 1.7 2001-10-23 00:57:32 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 |
| 84 self.assertEqual(content, 'testing') | 84 self.assertEqual(content, 'testing') |
| 85 | 85 |
| 86 def testParagraphs(self): | 86 def testParagraphs(self): |
| 87 s = '''testing\n\ntesting\n\ntesting''' | 87 s = '''testing\n\ntesting\n\ntesting''' |
| 88 summary, content = parseContent(s) | 88 summary, content = parseContent(s) |
| 89 print `summary`, `content` | |
| 90 self.assertEqual(summary, 'testing') | 89 self.assertEqual(summary, 'testing') |
| 91 self.assertEqual(content, 'testing\n\ntesting\n\ntesting') | 90 self.assertEqual(content, 'testing\n\ntesting\n\ntesting') |
| 92 | 91 |
| 93 def testEmpty(self): | 92 def testEmpty(self): |
| 94 s = '' | 93 s = '' |
| 100 return unittest.makeSuite(MailsplitTestCase, 'test') | 99 return unittest.makeSuite(MailsplitTestCase, 'test') |
| 101 | 100 |
| 102 | 101 |
| 103 # | 102 # |
| 104 # $Log: not supported by cvs2svn $ | 103 # $Log: not supported by cvs2svn $ |
| 104 # Revision 1.6 2001/10/21 03:35:13 richard | |
| 105 # bug #473125: Paragraph in e-mails | |
| 106 # | |
| 105 # Revision 1.5 2001/08/07 00:24:43 richard | 107 # Revision 1.5 2001/08/07 00:24:43 richard |
| 106 # stupid typo | 108 # stupid typo |
| 107 # | 109 # |
| 108 # Revision 1.4 2001/08/07 00:15:51 richard | 110 # Revision 1.4 2001/08/07 00:15:51 richard |
| 109 # Added the copyright/license notice to (nearly) all files at request of | 111 # Added the copyright/license notice to (nearly) all files at request of |
