diff options
| author | bwarsaw | 2001-10-09 23:19:38 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-09 23:19:38 +0000 |
| commit | 604833af6ce09b6ecdb6a2b90e9814dde085b966 (patch) | |
| tree | 823382b67232a33ae3ddcd98a146cacfcbe5f6e2 | |
| parent | a1214aca4895878bf533d5a3198a77dfb89f76e8 (diff) | |
| download | mailman-604833af6ce09b6ecdb6a2b90e9814dde085b966.tar.gz mailman-604833af6ce09b6ecdb6a2b90e9814dde085b966.tar.zst mailman-604833af6ce09b6ecdb6a2b90e9814dde085b966.zip | |
Added a bunch of new tests for bounce formats from Exim, Yahoo,
Postfix/DSN, and Netscape.
test_caiwireless(), test_microsoft(): I lost my samples of these
bounce formats, so added some really trivial (and mostly useless)
tests of these MTAs.
| -rw-r--r-- | tests/test_bounces.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test_bounces.py b/tests/test_bounces.py index b79d9f136..f0cb51231 100644 --- a/tests/test_bounces.py +++ b/tests/test_bounces.py @@ -31,6 +31,8 @@ class BounceTest(unittest.TestCase): ('Postfix', 'postfix_03.txt', ['ttttt@ggggg.com']), ('Postfix', 'postfix_04.txt', ['davidlowie@mail1.keftamail.com']), ('Postfix', 'postfix_05.txt', ['bjelf@detectit.net']), + # Exim bounces + ('Exim', 'exim_01.txt', ['delangen@its.tudelft.nl']), # SimpleMatch bounces ('SimpleMatch', 'sendmail_01.txt', ['zzzzz@nfg.nl']), ('SimpleMatch', 'simple_01.txt', ['bbbsss@turbosport.com']), @@ -52,6 +54,7 @@ class BounceTest(unittest.TestCase): ('DSN', 'dsn_05.txt', ['pkocmid@atlas.cz']), ('DSN', 'dsn_06.txt', ['hao-nghi.au@fr.thalesgroup.com']), ('DSN', 'dsn_07.txt', ['david.farrar@parliament.govt.nz']), + ('DSN', 'dsn_08.txt', ['news-list.zope@localhost.bln.innominate.de']), # SMTP32 ('SMTP32', 'smtp32_01.txt', ['oliver@pcworld.com.ph']), ('SMTP32', 'smtp32_02.txt', ['lists@mail.spicynoodles.com']), @@ -60,6 +63,11 @@ class BounceTest(unittest.TestCase): ('Qmail', 'qmail_01.txt', ['psadisc@wwwmail.n-h.de']), # LLNL's custom Sendmail ('LLNL', 'llnl_01.txt', ['trotts1@llnl.gov']), + # Netscape's server... + ('Netscape', 'netscape_01.txt', ['aaaaa@corel.com', + 'bbbbb@corel.com']), + # Yahoo's proprietary format + ('Yahoo', 'yahoo_01.txt', ['subscribe.motorcycles@listsociety.com']) # No address can be detected in these... # dumbass_01.txt - We love Microsoft. :( # Done @@ -93,6 +101,24 @@ class BounceTest(unittest.TestCase): self.failIf(msg['x-mailer'] is not None) self.failIf(SMTP32.process(msg)) + def test_caiwireless(self): + from Mailman.Bouncers import Caiwireless + # BAW: this is a mostly bogus test; I lost the samples. :( + msg = email.message_from_string("""\ +Content-Type: multipart/report + +""") + self.assertEqual(None, Caiwireless.process(msg)) + + def test_microsoft(self): + from Mailman.Bouncers import Microsoft + # BAW: similarly as above, I lost the samples. :( + msg = email.message_from_string("""\ +Content-Type: multipart/report + +""") + self.assertEqual(None, Microsoft.process(msg)) + def suite(): |
