comparison test/test_mailgw.py @ 857:6dd691e37aa8

Fixed the unit tests for the new multilist controls in the mailgw
author Richard Jones <richard@users.sourceforge.net>
date Sun, 14 Jul 2002 02:02:43 +0000
parents 34eacaa7e313
children 502a5ae11cc5
comparison
equal deleted inserted replaced
856:826f6e689836 857:6dd691e37aa8
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.22 2002-07-09 01:21:24 richard Exp $ 11 # $Id: test_mailgw.py,v 1.23 2002-07-14 02:02:43 richard Exp $
12 12
13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib 13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib
14 14
15 # Note: Should parse emails according to RFC2822 instead of performing a 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 16 # literal string comparision. Parsing the messages allows the tests to work for
284 charset="iso-8859-1" 284 charset="iso-8859-1"
285 From: richard <richard@test> 285 From: richard <richard@test>
286 To: issue_tracker@your.tracker.email.domain.example 286 To: issue_tracker@your.tracker.email.domain.example
287 Message-Id: <followup_dummy_id> 287 Message-Id: <followup_dummy_id>
288 In-Reply-To: <dummy_test_message_id> 288 In-Reply-To: <dummy_test_message_id>
289 Subject: [issue1] Testing... [assignedto=mary; nosy=john] 289 Subject: [issue1] Testing... [assignedto=mary; nosy=+john]
290 290
291 This is a followup 291 This is a followup
292 ''') 292 ''')
293 handler = self.instance.MailGW(self.instance, self.db) 293 handler = self.instance.MailGW(self.instance, self.db)
294 handler.trapExceptions = 0 294 handler.trapExceptions = 0
333 charset="iso-8859-1" 333 charset="iso-8859-1"
334 From: richard <richard@test> 334 From: richard <richard@test>
335 To: issue_tracker@your.tracker.email.domain.example 335 To: issue_tracker@your.tracker.email.domain.example
336 Message-Id: <followup_dummy_id> 336 Message-Id: <followup_dummy_id>
337 In-Reply-To: <dummy_test_message_id> 337 In-Reply-To: <dummy_test_message_id>
338 Subject: Re: Testing... [assignedto=mary; nosy=john] 338 Subject: Re: Testing... [assignedto=mary; nosy=+john]
339 339
340 This is a followup 340 This is a followup
341 ''') 341 ''')
342 handler = self.instance.MailGW(self.instance, self.db) 342 handler = self.instance.MailGW(self.instance, self.db)
343 handler.trapExceptions = 0 343 handler.trapExceptions = 0
741 return unittest.TestSuite(l) 741 return unittest.TestSuite(l)
742 742
743 743
744 # 744 #
745 # $Log: not supported by cvs2svn $ 745 # $Log: not supported by cvs2svn $
746 # Revision 1.22 2002/07/09 01:21:24 richard
747 # Added ability for unit tests to turn off exception handling in mailgw so
748 # that exceptions are reported earlier (and hence make sense).
749 #
746 # Revision 1.21 2002/06/18 03:59:59 dman13 750 # Revision 1.21 2002/06/18 03:59:59 dman13
747 # Updated message strings to match the RFC822 address quoting performed 751 # Updated message strings to match the RFC822 address quoting performed
748 # by the 'email' and 'rfc822' modules. The verification really should 752 # by the 'email' and 'rfc822' modules. The verification really should
749 # use a RFC2822 message parser rather than literal string comparisions 753 # use a RFC2822 message parser rather than literal string comparisions
750 # to allow for legal variations in messages. 754 # to allow for legal variations in messages.

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