Mercurial > p > roundup > code
comparison test/test_mailsplit.py @ 1291:bf8b2380adb3
added CGI :remove:<propname> and :add:<propname>...
...which specify item ids to remove / add in <propname> multilink.
(is used in issue message display, allowing removal of messages)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 18 Oct 2002 03:34:58 +0000 |
| parents | 9b910e8d987d |
| children | 7e32c7663781 |
comparison
equal
deleted
inserted
replaced
| 1290:fc451828f971 | 1291:bf8b2380adb3 |
|---|---|
| 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.11 2002-09-10 00:19:55 richard Exp $ | 18 # $Id: test_mailsplit.py,v 1.12 2002-10-18 03:34:58 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 |
| 206 def testIndentationContent(self): | 206 def testIndentationContent(self): |
| 207 s = ' Four space indent.\n\n Four space indent.\nNo indent.' | 207 s = ' Four space indent.\n\n Four space indent.\nNo indent.' |
| 208 summary, content = parseContent(s, 0, 0) | 208 summary, content = parseContent(s, 0, 0) |
| 209 self.assertEqual(content, s) | 209 self.assertEqual(content, s) |
| 210 | 210 |
| 211 def testMultilineSummary(self): | |
| 212 s = 'This is a long sentence that would normally\nbe split. More words.' | |
| 213 summary, content = parseContent(s, 0, 0) | |
| 214 self.assertEqual(summary, 'This is a long sentence that would ' | |
| 215 'normally\nbe split.') | |
| 216 | |
| 211 def suite(): | 217 def suite(): |
| 212 return unittest.makeSuite(MailsplitTestCase, 'test') | 218 return unittest.makeSuite(MailsplitTestCase, 'test') |
| 213 | 219 |
| 214 | 220 |
| 215 # vim: set filetype=python ts=4 sw=4 et si | 221 # vim: set filetype=python ts=4 sw=4 et si |
