~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/app/tests/test_bounces.py

  • Committer: Barry Warsaw
  • Date: 2012-11-25 20:48:08 UTC
  • Revision ID: barry@list.org-20121125204808-g0pvuil2xq559k4p
Interim commit for refactoring out web-centric logic.

* Use SubscriptionEvent to handle the sending of the welcome message.
* Use ConfirmationNeededEvent to send the confirmation message.
* For now, hard code the adminurl and comment out the listinfo_uri.
* Pend the list-id instead of the fqdn-listname
* Use the new configuration support for Postfix settings.
* Get rid of the IDomain's url_host, base_url, and scheme attributes, as well
  as the confirm_url() method. 
* Get rid of the IMailingList's script_url() method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
455
455
        body = payload.get_payload()
456
456
        self.assertEqual(
457
457
            body.splitlines()[-1],
458
 
            'http://lists.example.com/admin/test@example.com/bounce')
 
458
            'For more information see: http://example.com')
459
459
        # The second attachment should be a message/rfc822 containing the
460
460
        # original bounce message.
461
461
        payload = msg.get_payload(1)
501
501
        body = payload.get_payload()
502
502
        self.assertEqual(
503
503
            body.splitlines()[-1],
504
 
            'http://lists.example.com/admin/test@example.com/bounce')
 
504
            'For more information see: http://example.com')
505
505
        # The second attachment should be a message/rfc822 containing the
506
506
        # original bounce message.
507
507
        payload = msg.get_payload(1)