Code

added test to confirm behaviour of summary generation from quoted-only email
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 30 Sep 2003 23:55:54 +0000 (23:55 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 30 Sep 2003 23:55:54 +0000 (23:55 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1889 57a73879-2fb5-44c3-a270-3262357dd7e2

test/test_mailsplit.py

index f4cef60d9ad99446ba65ac3d5668ce18b17a7f17..1eda5019c25999e1780a250c40b9494a3b0e5e88 100644 (file)
@@ -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.12 2002-10-18 03:34:58 richard Exp $
+# $Id: test_mailsplit.py,v 1.13 2003-09-30 23:55:54 richard Exp $
 
 import unittest, cStringIO
 
@@ -167,6 +167,11 @@ blah blah blah signature
 userfoo@foo.com
 ''')
 
+    def testAllQuoted(self):
+        s = '\nissue_tracker@foo.com wrote:\n> testing\n'
+        summary, content = parseContent(s, 0, 1)
+        self.assertEqual(summary, '')
+        self.assertEqual(content, s)
 
     def testSimple(self):
         s = '''testing'''