Mercurial > p > roundup > code
comparison test/test_mailsplit.py @ 200:89c47b5dadac
er, removed the innocent from the the code :)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 03 Aug 2001 07:23:09 +0000 |
| parents | eda506860b32 |
| children | d702ac2ceedb |
comparison
equal
deleted
inserted
replaced
| 199:0345753f27cf | 200:89c47b5dadac |
|---|---|
| 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 $ |
| 2 | 2 |
| 3 import unittest, cStringIO | 3 import unittest, cStringIO |
| 4 | 4 |
| 5 from roundup.mailgw import parseContent | 5 from roundup.mailgw import parseContent |
| 6 | 6 |
| 7 class MailsplitTestCase(unittest.TestCase): | 7 class MailsplitTestCase(unittest.TestCase): |
| 8 def testPreComment(self): | 8 def testPreComment(self): |
| 9 s = ''' | 9 s = ''' |
| 10 i will have to think about this later...not a 1.0.4 thing I don't | 10 blah blah blah blah... blah blah? blah blah blah blah blah. blah blah blah |
| 11 think...too much thought involved! | 11 blah blah blah blah blah blah blah blah blah blah blah! |
| 12 | 12 |
| 13 issue_tracker@bizarsoftware.com.au wrote: | 13 issue_tracker@foo.com wrote: |
| 14 > Hey, is there a reason why we can't just leave shop_domain and | 14 > blah blah blah blahblah blahblah blahblah blah blah blah blah blah blah |
| 15 > secure_domain blank and user the REQUEST.whatever_the_machine_name_is | 15 > blah blah blah blah blah blah blah blah blah? blah blah blah blah blah |
| 16 > for most users? And then specify that if you're going to have | 16 > blah blah blah blah blah blah blah... blah blah blah blah. blah blah |
| 17 > secure_domain, you've got to have shop_domain too? | 17 > blah blah blah blah? blah blah blah blah blah blah! blah blah! |
| 18 > | 18 > |
| 19 > ------- | 19 > ------- |
| 20 > nosy: richard, tejay | 20 > nosy: userfoo, userken |
| 21 > ___________________________ | 21 > _________________________________________________ |
| 22 > Roundup issue tracker | 22 > Roundup issue tracker |
| 23 > issue_tracker@bizarsoftware.com.au | 23 > issue_tracker@foo.com |
| 24 > http://dirk.adroit/cgi-bin/roundup.cgi/issue_tracker/ | 24 > http://foo.com/cgi-bin/roundup.cgi/issue_tracker/ |
| 25 | 25 |
| 26 -- | 26 -- |
| 27 Terry Kerr (terry@bizarsoftware.com.au) | 27 blah blah blah signature |
| 28 Bizar Software Pty Ltd (www.bizarsoftware.com.au) | 28 userfoo@foo.com |
| 29 Phone: +61 3 9563 4461 | |
| 30 Fax: +61 3 9563 3856 | |
| 31 ICQ: 79303381 | |
| 32 ''' | 29 ''' |
| 33 summary, content = parseContent(s) | 30 summary, content = parseContent(s) |
| 34 print '\n====\n', summary | 31 print '\n====\n', summary |
| 35 print '====', content | 32 print '====', content |
| 36 print '====' | 33 print '====' |
| 37 | 34 |
| 38 def testPostComment(self): | 35 def testPostComment(self): |
| 39 s = ''' | 36 s = ''' |
| 40 issue_tracker@bizarsoftware.com.au wrote: | 37 issue_tracker@foo.com wrote: |
| 41 > Hey, is there a reason why we can't just leave shop_domain and | 38 > blah blah blah blahblah blahblah blahblah blah blah blah blah blah |
| 42 > secure_domain blank and user the REQUEST.whatever_the_machine_name_is | 39 > blah |
| 43 > for most users? And then specify that if you're going to have | 40 > blah blah blah blah blah blah blah blah blah? blah blah blah blah |
| 44 > secure_domain, you've got to have shop_domain too? | 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! | |
| 45 > | 45 > |
| 46 > ------- | 46 > ------- |
| 47 > nosy: richard, tejay | 47 > nosy: userfoo, userken |
| 48 > ___________________________ | 48 > _________________________________________________ |
| 49 > Roundup issue tracker | 49 > Roundup issue tracker |
| 50 > issue_tracker@bizarsoftware.com.au | 50 > issue_tracker@foo.com |
| 51 > http://dirk.adroit/cgi-bin/roundup.cgi/issue_tracker/ | 51 > http://foo.com/cgi-bin/roundup.cgi/issue_tracker/ |
| 52 | 52 |
| 53 i will have to think about this later...not a 1.0.4 thing I don't | 53 blah blah blah blah... blah blah? blah blah blah blah blah. blah blah blah |
| 54 think...too much thought involved! | 54 blah blah blah blah blah blah blah blah blah blah blah! |
| 55 | 55 |
| 56 -- | 56 -- |
| 57 Terry Kerr (terry@bizarsoftware.com.au) | 57 blah blah blah signature |
| 58 Bizar Software Pty Ltd (www.bizarsoftware.com.au) | 58 userfoo@foo.com |
| 59 Phone: +61 3 9563 4461 | |
| 60 Fax: +61 3 9563 3856 | |
| 61 ICQ: 79303381 | |
| 62 ''' | 59 ''' |
| 63 summary, content = parseContent(s) | 60 summary, content = parseContent(s) |
| 64 print '\n====\n', summary | 61 print '\n====\n', summary |
| 65 print '====', content | 62 print '====', content |
| 66 print '====' | 63 print '====' |
| 83 return unittest.makeSuite(MailsplitTestCase, 'test') | 80 return unittest.makeSuite(MailsplitTestCase, 'test') |
| 84 | 81 |
| 85 | 82 |
| 86 # | 83 # |
| 87 # $Log: not supported by cvs2svn $ | 84 # $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 # | |
| 88 # | 89 # |
| 89 # | 90 # |
| 90 # vim: set filetype=python ts=4 sw=4 et si | 91 # vim: set filetype=python ts=4 sw=4 et si |
