summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82276c3)
raw | patch | inline | side by side (parent: 82276c3)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 25 Oct 2003 12:02:37 +0000 (12:02 +0000) | ||
committer | jlgijsbers <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
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1938 57a73879-2fb5-44c3-a270-3262357dd7e2
test/test_mailgw.py | patch | blob | history | |
test/test_mailsplit.py | patch | blob | history |
diff --git a/test/test_mailgw.py b/test/test_mailgw.py
index 4adbad5b2ec4f5e2498fe14b74478c7c652d818e..5f0ca242234836978f1d1666d6c712dde4ea9c2e 100644 (file)
--- a/test/test_mailgw.py
+++ b/test/test_mailgw.py
# 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
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)
diff --git a/test/test_mailsplit.py b/test/test_mailsplit.py
index 1eda5019c25999e1780a250c40b9494a3b0e5e88..a50e2d4c1254ac3f75d9ba0c3006051dbaddac77 100644 (file)
--- a/test/test_mailsplit.py
+++ b/test/test_mailsplit.py
# 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
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')