Skip to content

Commit 95e9127

Browse files
author
Richard Jones
committed
er, removed the innocent from the the code :)
1 parent e38a6a5 commit 95e9127

File tree

1 file changed

+34
-33
lines changed

1 file changed

+34
-33
lines changed

test/test_mailsplit.py

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: test_mailsplit.py,v 1.1 2001-08-03 07:18:22 richard Exp $
1+
# $Id: test_mailsplit.py,v 1.2 2001-08-03 07:23:09 richard Exp $
22

33
import unittest, cStringIO
44

@@ -7,28 +7,25 @@
77
class MailsplitTestCase(unittest.TestCase):
88
def testPreComment(self):
99
s = '''
10-
i will have to think about this later...not a 1.0.4 thing I don't
11-
think...too much thought involved!
10+
blah blah blah blah... blah blah? blah blah blah blah blah. blah blah blah
11+
blah blah blah blah blah blah blah blah blah blah blah!
1212
13-
issue_tracker@bizarsoftware.com.au wrote:
14-
> Hey, is there a reason why we can't just leave shop_domain and
15-
> secure_domain blank and user the REQUEST.whatever_the_machine_name_is
16-
> for most users? And then specify that if you're going to have
17-
> secure_domain, you've got to have shop_domain too?
13+
issue_tracker@foo.com wrote:
14+
> blah blah blah blahblah blahblah blahblah blah blah blah blah blah blah
15+
> blah blah blah blah blah blah blah blah blah? blah blah blah blah blah
16+
> blah blah blah blah blah blah blah... blah blah blah blah. blah blah
17+
> blah blah blah blah? blah blah blah blah blah blah! blah blah!
1818
>
1919
> -------
20-
> nosy: richard, tejay
21-
> ___________________________
20+
> nosy: userfoo, userken
21+
> _________________________________________________
2222
> Roundup issue tracker
23-
> issue_tracker@bizarsoftware.com.au
24-
> http://dirk.adroit/cgi-bin/roundup.cgi/issue_tracker/
23+
> issue_tracker@foo.com
24+
> http://foo.com/cgi-bin/roundup.cgi/issue_tracker/
2525
2626
--
27-
Terry Kerr ([email protected])
28-
Bizar Software Pty Ltd (www.bizarsoftware.com.au)
29-
Phone: +61 3 9563 4461
30-
Fax: +61 3 9563 3856
31-
ICQ: 79303381
27+
blah blah blah signature
28+
3229
'''
3330
summary, content = parseContent(s)
3431
print '\n====\n', summary
@@ -37,28 +34,28 @@ def testPreComment(self):
3734

3835
def testPostComment(self):
3936
s = '''
40-
41-
> Hey, is there a reason why we can't just leave shop_domain and
42-
> secure_domain blank and user the REQUEST.whatever_the_machine_name_is
43-
> for most users? And then specify that if you're going to have
44-
> secure_domain, you've got to have shop_domain too?
37+
38+
> blah blah blah blahblah blahblah blahblah blah blah blah blah blah
39+
> blah
40+
> blah blah blah blah blah blah blah blah blah? blah blah blah blah
41+
> blah
42+
> blah blah blah blah blah blah blah... blah blah blah blah. blah
43+
> blah
44+
> blah blah blah blah? blah blah blah blah blah blah! blah blah!
4545
>
4646
> -------
47-
> nosy: richard, tejay
48-
> ___________________________
47+
> nosy: userfoo, userken
48+
> _________________________________________________
4949
> Roundup issue tracker
50-
> issue_tracker@bizarsoftware.com.au
51-
> http://dirk.adroit/cgi-bin/roundup.cgi/issue_tracker/
50+
> issue_tracker@foo.com
51+
> http://foo.com/cgi-bin/roundup.cgi/issue_tracker/
5252
53-
i will have to think about this later...not a 1.0.4 thing I don't
54-
think...too much thought involved!
53+
blah blah blah blah... blah blah? blah blah blah blah blah. blah blah blah
54+
blah blah blah blah blah blah blah blah blah blah blah!
5555
5656
--
57-
Terry Kerr ([email protected])
58-
Bizar Software Pty Ltd (www.bizarsoftware.com.au)
59-
Phone: +61 3 9563 4461
60-
Fax: +61 3 9563 3856
61-
ICQ: 79303381
57+
blah blah blah signature
58+
6259
'''
6360
summary, content = parseContent(s)
6461
print '\n====\n', summary
@@ -85,6 +82,10 @@ def suite():
8582

8683
#
8784
# $Log: not supported by cvs2svn $
85+
# Revision 1.1 2001/08/03 07:18:22 richard
86+
# Implemented correct mail splitting (was taking a shortcut). Added unit
87+
# tests. Also snips signatures now too.
88+
#
8889
#
8990
#
9091
# vim: set filetype=python ts=4 sw=4 et si

0 commit comments

Comments
 (0)