Mercurial > p > roundup > code
diff test/test_mailsplit.py @ 1869:3260268e45d2
Move tests to test_mailsplit, which I hadn't seen before
(insert the sound of one hand slapping here).
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Sat, 25 Oct 2003 12:02:37 +0000 |
| parents | 7e32c7663781 |
| children | f63aa57386b0 |
line wrap: on
line diff
--- a/test/test_mailsplit.py Sat Oct 25 11:41:06 2003 +0000 +++ b/test/test_mailsplit.py Sat Oct 25 12:02:37 2003 +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.13 2003-09-30 23:55:54 richard Exp $ +# $Id: test_mailsplit.py,v 1.14 2003-10-25 12:02:37 jlgijsbers Exp $ import unittest, cStringIO @@ -219,6 +219,14 @@ self.assertEqual(summary, 'This is a long sentence that would ' 'normally\nbe split.') + def testKeepMultipleHyphens(self): + body = '''Testing, testing. + +---- +Testing, testing.''' + summary, content = parseContent(body, 1, 0) + self.assertEqual(body, content) + def suite(): return unittest.makeSuite(MailsplitTestCase, 'test')
