diff 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
line wrap: on
line diff
--- a/test/test_mailsplit.py	Fri Oct 18 03:18:01 2002 +0000
+++ b/test/test_mailsplit.py	Fri Oct 18 03:34:58 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.11 2002-09-10 00:19:55 richard Exp $
+# $Id: test_mailsplit.py,v 1.12 2002-10-18 03:34:58 richard Exp $
 
 import unittest, cStringIO
 
@@ -208,6 +208,12 @@
         summary, content = parseContent(s, 0, 0)
         self.assertEqual(content, s)
 
+    def testMultilineSummary(self):
+        s = 'This is a long sentence that would normally\nbe split. More words.'
+        summary, content = parseContent(s, 0, 0)
+        self.assertEqual(summary, 'This is a long sentence that would '
+            'normally\nbe split.')
+
 def suite():
    return unittest.makeSuite(MailsplitTestCase, 'test')
 

Roundup Issue Tracker: http://roundup-tracker.org/