Mercurial > p > roundup > code
comparison test/test_mailsplit.py @ 334:256776bfdfc5
fixed [SF#474749] Indentations lost
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 28 Oct 2001 23:22:28 +0000 |
| parents | 6ce3af6a08ca |
| children | 3f6107488465 c242455d9b46 |
comparison
equal
deleted
inserted
replaced
| 333:4609a1ea94ff | 334:256776bfdfc5 |
|---|---|
| 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.7 2001-10-23 00:57:32 richard Exp $ | 18 # $Id: test_mailsplit.py,v 1.8 2001-10-28 23:22:28 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 |
| 93 s = '' | 93 s = '' |
| 94 summary, content = parseContent(s) | 94 summary, content = parseContent(s) |
| 95 self.assertEqual(summary, '') | 95 self.assertEqual(summary, '') |
| 96 self.assertEqual(content, '') | 96 self.assertEqual(content, '') |
| 97 | 97 |
| 98 def testIndentationSummary(self): | |
| 99 s = ' Four space indent.\n\n Four space indent.\nNo indent.' | |
| 100 summary, content = parseContent(s) | |
| 101 self.assertEqual(summary, ' Four space indent.') | |
| 102 | |
| 103 def testIndentationContent(self): | |
| 104 s = ' Four space indent.\n\n Four space indent.\nNo indent.' | |
| 105 summary, content = parseContent(s) | |
| 106 self.assertEqual(content, s) | |
| 107 | |
| 98 def suite(): | 108 def suite(): |
| 99 return unittest.makeSuite(MailsplitTestCase, 'test') | 109 return unittest.makeSuite(MailsplitTestCase, 'test') |
| 100 | 110 |
| 101 | 111 |
| 102 # | 112 # |
| 103 # $Log: not supported by cvs2svn $ | 113 # $Log: not supported by cvs2svn $ |
| 114 # Revision 1.7 2001/10/23 00:57:32 richard | |
| 115 # Removed debug print from mailsplit test. | |
| 116 # | |
| 104 # Revision 1.6 2001/10/21 03:35:13 richard | 117 # Revision 1.6 2001/10/21 03:35:13 richard |
| 105 # bug #473125: Paragraph in e-mails | 118 # bug #473125: Paragraph in e-mails |
| 106 # | 119 # |
| 107 # Revision 1.5 2001/08/07 00:24:43 richard | 120 # Revision 1.5 2001/08/07 00:24:43 richard |
| 108 # stupid typo | 121 # stupid typo |
