Mercurial > p > roundup > code
diff test/test_mailsplit.py @ 510:3f6107488465
followup lines directly after a quoted section were being eaten.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 10 Jan 2002 06:19:20 +0000 |
| parents | 256776bfdfc5 |
| children | d524e5b52061 54333751e98d |
line wrap: on
line diff
--- a/test/test_mailsplit.py Thu Jan 10 05:57:45 2002 +0000 +++ b/test/test_mailsplit.py Thu Jan 10 06:19:20 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_mailsplit.py,v 1.8 2001-10-28 23:22:28 richard Exp $ +# $Id: test_mailsplit.py,v 1.9 2002-01-10 06:19:20 richard Exp $ import unittest, cStringIO @@ -89,6 +89,18 @@ self.assertEqual(summary, 'testing') self.assertEqual(content, 'testing\n\ntesting\n\ntesting') + def testSimpleFollowup(self): + s = '''>hello\ntesting''' + summary, content = parseContent(s) + self.assertEqual(summary, 'testing') + self.assertEqual(content, 'testing') + + def testSimpleFollowupParas(self): + s = '''>hello\ntesting\n\ntesting\n\ntesting''' + summary, content = parseContent(s) + self.assertEqual(summary, 'testing') + self.assertEqual(content, 'testing\n\ntesting\n\ntesting') + def testEmpty(self): s = '' summary, content = parseContent(s) @@ -111,6 +123,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.8 2001/10/28 23:22:28 richard +# fixed bug #474749 ] Indentations lost +# # Revision 1.7 2001/10/23 00:57:32 richard # Removed debug print from mailsplit test. #
