Code

Move tests to test_mailsplit, which I hadn't seen before (insert the
authorjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sat, 25 Oct 2003 12:02:37 +0000 (12:02 +0000)
committerjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sat, 25 Oct 2003 12:02:37 +0000 (12:02 +0000)
sound of one hand slapping here).

git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1938 57a73879-2fb5-44c3-a270-3262357dd7e2

test/test_mailgw.py
test/test_mailsplit.py

index 4adbad5b2ec4f5e2498fe14b74478c7c652d818e..5f0ca242234836978f1d1666d6c712dde4ea9c2e 100644 (file)
@@ -8,7 +8,7 @@
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 #
-# $Id: test_mailgw.py,v 1.55 2003-10-24 15:01:11 jlgijsbers Exp $
+# $Id: test_mailgw.py,v 1.56 2003-10-25 12:02:36 jlgijsbers Exp $
 
 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822
 
@@ -994,26 +994,8 @@ This is a test confirmation of registration.
 
         self.db.user.lookup('johannes')
 
-
-class ParseContentTestCase(unittest.TestCase):
-    def testSignatureRemoval(self):
-        summary, content = parseContent('''Testing, testing.
-
--- 
-Signature''', 1, 0)
-        self.assertEqual(content, 'Testing, testing.')
-
-    def testKeepMultipleHyphens(self):
-        body = '''Testing, testing.
-
-----
-Testing, testing.'''
-        summary, content = parseContent(body, 1, 0)
-        self.assertEqual(body, content)
-
 def suite():
-    l = [unittest.makeSuite(MailgwTestCase),
-         unittest.makeSuite(ParseContentTestCase)]
+    l = [unittest.makeSuite(MailgwTestCase)]
     return unittest.TestSuite(l)
 
 
index 1eda5019c25999e1780a250c40b9494a3b0e5e88..a50e2d4c1254ac3f75d9ba0c3006051dbaddac77 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.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 @@ userfoo@foo.com
         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')