summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9ef4a67)
raw | patch | inline | side by side (parent: 9ef4a67)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 3 Aug 2001 07:23:09 +0000 (07:23 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 3 Aug 2001 07:23:09 +0000 (07:23 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@206 57a73879-2fb5-44c3-a270-3262357dd7e2
test/test_mailsplit.py | patch | blob | history |
diff --git a/test/test_mailsplit.py b/test/test_mailsplit.py
index 6b178e0a1d9043381adbf23b613616d2974ac014..41ab9885f21d34b9b41912e9107d74a1cd6d75ff 100644 (file)
--- a/test/test_mailsplit.py
+++ b/test/test_mailsplit.py
-# $Id: test_mailsplit.py,v 1.1 2001-08-03 07:18:22 richard Exp $
+# $Id: test_mailsplit.py,v 1.2 2001-08-03 07:23:09 richard Exp $
import unittest, cStringIO
class MailsplitTestCase(unittest.TestCase):
def testPreComment(self):
s = '''
-i will have to think about this later...not a 1.0.4 thing I don't
-think...too much thought involved!
+blah blah blah blah... blah blah? blah blah blah blah blah. blah blah blah
+blah blah blah blah blah blah blah blah blah blah blah!
-issue_tracker@bizarsoftware.com.au wrote:
-> Hey, is there a reason why we can't just leave shop_domain and
-> secure_domain blank and user the REQUEST.whatever_the_machine_name_is
-> for most users? And then specify that if you're going to have
-> secure_domain, you've got to have shop_domain too?
+issue_tracker@foo.com wrote:
+> blah blah blah blahblah blahblah blahblah blah blah blah blah blah blah
+> blah blah blah blah blah blah blah blah blah? blah blah blah blah blah
+> blah blah blah blah blah blah blah... blah blah blah blah. blah blah
+> blah blah blah blah? blah blah blah blah blah blah! blah blah!
>
> -------
-> nosy: richard, tejay
-> ___________________________
+> nosy: userfoo, userken
+> _________________________________________________
> Roundup issue tracker
-> issue_tracker@bizarsoftware.com.au
-> http://dirk.adroit/cgi-bin/roundup.cgi/issue_tracker/
+> issue_tracker@foo.com
+> http://foo.com/cgi-bin/roundup.cgi/issue_tracker/
--
-Terry Kerr (terry@bizarsoftware.com.au)
-Bizar Software Pty Ltd (www.bizarsoftware.com.au)
-Phone: +61 3 9563 4461
-Fax: +61 3 9563 3856
-ICQ: 79303381
+blah blah blah signature
+userfoo@foo.com
'''
summary, content = parseContent(s)
print '\n====\n', summary
def testPostComment(self):
s = '''
-issue_tracker@bizarsoftware.com.au wrote:
-> Hey, is there a reason why we can't just leave shop_domain and
-> secure_domain blank and user the REQUEST.whatever_the_machine_name_is
-> for most users? And then specify that if you're going to have
-> secure_domain, you've got to have shop_domain too?
+issue_tracker@foo.com wrote:
+> blah blah blah blahblah blahblah blahblah blah blah blah blah blah
+> blah
+> blah blah blah blah blah blah blah blah blah? blah blah blah blah
+> blah
+> blah blah blah blah blah blah blah... blah blah blah blah. blah
+> blah
+> blah blah blah blah? blah blah blah blah blah blah! blah blah!
>
> -------
-> nosy: richard, tejay
-> ___________________________
+> nosy: userfoo, userken
+> _________________________________________________
> Roundup issue tracker
-> issue_tracker@bizarsoftware.com.au
-> http://dirk.adroit/cgi-bin/roundup.cgi/issue_tracker/
+> issue_tracker@foo.com
+> http://foo.com/cgi-bin/roundup.cgi/issue_tracker/
-i will have to think about this later...not a 1.0.4 thing I don't
-think...too much thought involved!
+blah blah blah blah... blah blah? blah blah blah blah blah. blah blah blah
+blah blah blah blah blah blah blah blah blah blah blah!
--
-Terry Kerr (terry@bizarsoftware.com.au)
-Bizar Software Pty Ltd (www.bizarsoftware.com.au)
-Phone: +61 3 9563 4461
-Fax: +61 3 9563 3856
-ICQ: 79303381
+blah blah blah signature
+userfoo@foo.com
'''
summary, content = parseContent(s)
print '\n====\n', summary
#
# $Log: not supported by cvs2svn $
+# Revision 1.1 2001/08/03 07:18:22 richard
+# Implemented correct mail splitting (was taking a shortcut). Added unit
+# tests. Also snips signatures now too.
+#
#
#
# vim: set filetype=python ts=4 sw=4 et si