88# but WITHOUT ANY WARRANTY; without even the implied warranty of
99# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010#
11- # $Id: test_mailgw.py,v 1.20 2002-05-29 01:16:17 richard Exp $
11+ # $Id: test_mailgw.py,v 1.21 2002-06-18 03:59:59 dman13 Exp $
1212
1313import unittest , cStringIO , tempfile , os , shutil , errno , imp , sys , difflib
1414
15+ # Note: Should parse emails according to RFC2822 instead of performing a
16+ # literal string comparision. Parsing the messages allows the tests to work for
17+ # any legal serialization of an email.
18+ #try :
19+ # import email
20+ #except ImportError :
21+ # import rfc822 as email
22+
1523from roundup .mailgw import MailGW
1624from roundup import init , instance
1725
@@ -89,7 +97,7 @@ def tearDown(self):
8997 def doNewIssue (self ):
9098 message = cStringIO .StringIO ('''Content-Type: text/plain;
9199 charset="iso-8859-1"
92- 100+ 9310194102Cc: richard@test
95103Message-Id: <dummy_test_message_id>
@@ -113,7 +121,7 @@ def testNewIssueNosy(self):
113121 self .instance .ADD_AUTHOR_TO_NOSY = 'yes'
114122 message = cStringIO .StringIO ('''Content-Type: text/plain;
115123 charset="iso-8859-1"
116- 124+ 117125118126Cc: richard@test
119127Message-Id: <dummy_test_message_id>
@@ -152,7 +160,7 @@ def testAlternateAddress(self):
152160 def testNewIssueNoClass (self ):
153161 message = cStringIO .StringIO ('''Content-Type: text/plain;
154162 charset="iso-8859-1"
155- 163+ 156164157165Cc: richard@test
158166Message-Id: <dummy_test_message_id>
@@ -169,7 +177,7 @@ def testNewIssueNoClass(self):
169177 def testNewIssueAuthMsg (self ):
170178 message = cStringIO .StringIO ('''Content-Type: text/plain;
171179 charset="iso-8859-1"
172- 180+ 173181174182Message-Id: <dummy_test_message_id>
175183Subject: [issue] Testing... [nosy=mary; assignedto=richard]
@@ -187,8 +195,8 @@ def testNewIssueAuthMsg(self):
187195Content-Type: text/plain
188196Subject: [issue1] Testing...
189197To: [email protected] , mary@test, richard@test 190- 191- Reply-To: Roundup issue tracker <[email protected] > 198+ 199+ Reply-To: " Roundup issue tracker" <[email protected] > 192200MIME-Version: 1.0
193201Message-Id: <dummy_test_message_id>
194202X-Roundup-Name: Roundup issue tracker
@@ -241,8 +249,8 @@ def testSimpleFollowup(self):
241249Content-Type: text/plain
242250Subject: [issue1] Testing...
243251To: [email protected] , richard@test 244- 245- Reply-To: Roundup issue tracker <[email protected] > 252+ 253+ Reply-To: " Roundup issue tracker" <[email protected] > 246254MIME-Version: 1.0
247255Message-Id: <followup_dummy_id>
248256In-Reply-To: <dummy_test_message_id>
@@ -288,8 +296,8 @@ def testFollowup(self):
288296Content-Type: text/plain
289297Subject: [issue1] Testing...
290298To: [email protected] , john@test, mary@test 291- 292- Reply-To: Roundup issue tracker <[email protected] > 299+ From: " richard" <[email protected] > 300+ Reply-To: " Roundup issue tracker" <[email protected] > 293301MIME-Version: 1.0
294302Message-Id: <followup_dummy_id>
295303In-Reply-To: <dummy_test_message_id>
@@ -333,8 +341,8 @@ def testFollowupTitleMatch(self):
333341Content-Type: text/plain
334342Subject: [issue1] Testing...
335343To: [email protected] , john@test, mary@test 336- 337- Reply-To: Roundup issue tracker <[email protected] > 344+ From: " richard" <[email protected] > 345+ Reply-To: " Roundup issue tracker" <[email protected] > 338346MIME-Version: 1.0
339347Message-Id: <followup_dummy_id>
340348In-Reply-To: <dummy_test_message_id>
@@ -379,8 +387,8 @@ def testFollowupNosyAuthor(self):
379387Content-Type: text/plain
380388Subject: [issue1] Testing...
381389To: [email protected] , richard@test 382- 383- Reply-To: Roundup issue tracker <[email protected] > 390+ 391+ Reply-To: " Roundup issue tracker" <[email protected] > 384392MIME-Version: 1.0
385393Message-Id: <followup_dummy_id>
386394In-Reply-To: <dummy_test_message_id>
@@ -426,8 +434,8 @@ def testFollowupNosyRecipients(self):
426434Content-Type: text/plain
427435Subject: [issue1] Testing...
428436429- 430- Reply-To: Roundup issue tracker <[email protected] > 437+ From: " richard" <[email protected] > 438+ Reply-To: " Roundup issue tracker" <[email protected] > 431439MIME-Version: 1.0
432440Message-Id: <followup_dummy_id>
433441In-Reply-To: <dummy_test_message_id>
@@ -473,8 +481,8 @@ def testFollowupNosyAuthorAndCopy(self):
473481Content-Type: text/plain
474482Subject: [issue1] Testing...
475483To: [email protected] , john@test, richard@test 476- 477- Reply-To: Roundup issue tracker <[email protected] > 484+ 485+ Reply-To: " Roundup issue tracker" <[email protected] > 478486MIME-Version: 1.0
479487Message-Id: <followup_dummy_id>
480488In-Reply-To: <dummy_test_message_id>
@@ -519,8 +527,8 @@ def testFollowupNoNosyAuthor(self):
519527Content-Type: text/plain
520528Subject: [issue1] Testing...
521529To: [email protected] , richard@test 522- 523- Reply-To: Roundup issue tracker <[email protected] > 530+ 531+ Reply-To: " Roundup issue tracker" <[email protected] > 524532MIME-Version: 1.0
525533Message-Id: <followup_dummy_id>
526534In-Reply-To: <dummy_test_message_id>
@@ -565,8 +573,8 @@ def testFollowupNoNosyRecipients(self):
565573Content-Type: text/plain
566574Subject: [issue1] Testing...
567575568- 569- Reply-To: Roundup issue tracker <[email protected] > 576+ From: " richard" <[email protected] > 577+ Reply-To: " Roundup issue tracker" <[email protected] > 570578MIME-Version: 1.0
571579Message-Id: <followup_dummy_id>
572580In-Reply-To: <dummy_test_message_id>
@@ -633,8 +641,8 @@ def testEnc01(self):
633641Content-Type: text/plain
634642Subject: [issue1] Testing...
635643To: [email protected] , richard@test 636- 637- Reply-To: Roundup issue tracker <[email protected] > 644+ 645+ Reply-To: " Roundup issue tracker" <[email protected] > 638646MIME-Version: 1.0
639647Message-Id: <followup_dummy_id>
640648In-Reply-To: <dummy_test_message_id>
@@ -686,8 +694,8 @@ def testMultipartEnc01(self):
686694Content-Type: text/plain
687695Subject: [issue1] Testing...
688696To: [email protected] , richard@test 689- 690- Reply-To: Roundup issue tracker <[email protected] > 697+ 698+ Reply-To: " Roundup issue tracker" <[email protected] > 691699MIME-Version: 1.0
692700Message-Id: <followup_dummy_id>
693701In-Reply-To: <dummy_test_message_id>
@@ -719,6 +727,18 @@ def suite():
719727
720728#
721729# $Log: not supported by cvs2svn $
730+ # Revision 1.20 2002/05/29 01:16:17 richard
731+ # Sorry about this huge checkin! It's fixing a lot of related stuff in one go
732+ # though.
733+ #
734+ # . #541941 ] changing multilink properties by mail
735+ # . #526730 ] search for messages capability
736+ # . #505180 ] split MailGW.handle_Message
737+ # - also changed cgi client since it was duplicating the functionality
738+ # . build htmlbase if tests are run using CVS checkout (removed note from
739+ # installation.txt)
740+ # . don't create an empty message on email issue creation if the email is empty
741+ #
722742# Revision 1.19 2002/05/23 04:26:05 richard
723743# 'I must run unit tests before committing\n' * 100
724744#
0 commit comments