comparison test/test_mailgw.py @ 609:633f2b542146

Clean up mail handling, multipart handling.
author Engelbert Gruber <grubert@users.sourceforge.net>
date Tue, 12 Feb 2002 08:08:55 +0000
parents 08aae4d34622
children d77b82588bf0
comparison
equal deleted inserted replaced
600:a4c32558d345 609:633f2b542146
6 # 6 #
7 # This module is distributed in the hope that it will be useful, 7 # This module is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # 10 #
11 # $Id: test_mailgw.py,v 1.9 2002-02-05 14:15:29 grubert Exp $ 11 # $Id: test_mailgw.py,v 1.10 2002-02-12 08:08:55 grubert Exp $
12 12
13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys 13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys
14 14
15 from roundup.mailgw import MailGW 15 from roundup.mailgw import MailGW
16 from roundup import init, instance 16 from roundup import init, instance
103 "Roundup issue tracker" <issue_tracker@fill.me.in.> 103 "Roundup issue tracker" <issue_tracker@fill.me.in.>
104 http://some.useful.url/issue1 104 http://some.useful.url/issue1
105 ___________________________________________________ 105 ___________________________________________________
106 ''') 106 ''')
107 107
108 # BUG
109 # def testMultipart(self):
110 # '''With more than one part'''
111 # see MultipartEnc tests: but if there is more than one part
112 # we return a multipart/mixed and the boundary contains
113 # the ip address of the test machine.
114
115 # BUG should test some binary attamchent too.
116
108 def testFollowup(self): 117 def testFollowup(self):
109 self.testNewIssue() 118 self.testNewIssue()
110 message = cStringIO.StringIO('''Content-Type: text/plain; 119 message = cStringIO.StringIO('''Content-Type: text/plain;
111 charset="iso-8859-1" 120 charset="iso-8859-1"
112 From: richard <richard@test> 121 From: richard <richard@test>
294 return unittest.TestSuite(l) 303 return unittest.TestSuite(l)
295 304
296 305
297 # 306 #
298 # $Log: not supported by cvs2svn $ 307 # $Log: not supported by cvs2svn $
308 # Revision 1.9 2002/02/05 14:15:29 grubert
309 # . respect encodings in non multipart messages.
310 #
299 # Revision 1.8 2002/02/04 09:40:21 grubert 311 # Revision 1.8 2002/02/04 09:40:21 grubert
300 # . add test for multipart messages with first part being encoded. 312 # . add test for multipart messages with first part being encoded.
301 # 313 #
302 # Revision 1.7 2002/01/22 11:54:45 rochecompaan 314 # Revision 1.7 2002/01/22 11:54:45 rochecompaan
303 # Fixed status change in mail gateway. 315 # Fixed status change in mail gateway.

Roundup Issue Tracker: http://roundup-tracker.org/