~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/runners/tests/test_owner.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
# tests.  They're not exactly integration tests, but they do touch lots of
23
23
# parts of the system.
24
24
 
25
 
from __future__ import absolute_import, print_function, unicode_literals
26
 
 
27
 
__metaclass__ = type
28
25
__all__ = [
29
26
    'TestEmailToOwner',
30
27
    ]
32
29
 
33
30
import unittest
34
31
 
35
 
from operator import itemgetter
36
 
from zope.component import getUtility
37
 
 
38
32
from mailman.app.lifecycle import create_list
39
33
from mailman.config import config
40
34
from mailman.database.transaction import transaction
41
35
from mailman.interfaces.member import MemberRole
42
36
from mailman.interfaces.usermanager import IUserManager
43
37
from mailman.testing.helpers import (
44
 
    TestableMaster,
45
 
    get_lmtp_client,
46
 
    make_testable_runner)
 
38
    TestableMaster, get_lmtp_client, make_testable_runner)
47
39
from mailman.runners.incoming import IncomingRunner
48
40
from mailman.runners.outgoing import OutgoingRunner
49
41
from mailman.runners.pipeline import PipelineRunner
50
42
from mailman.testing.layers import SMTPLayer
 
43
from operator import itemgetter
 
44
from zope.component import getUtility
51
45
 
52
46
 
53
47
 
89
83
        # get a copy of the message.
90
84
        lmtp = get_lmtp_client(quiet=True)
91
85
        lmtp.lhlo('remote.example.org')
92
 
        lmtp.sendmail('zuzu@example.org', ['test-owner@example.com'], """\
 
86
        lmtp.sendmail('zuzu@example.org', ['test-owner@example.com'], b"""\
93
87
From: Zuzu Person <zuzu@example.org>
94
88
To: test-owner@example.com
95
89
Message-ID: <ant>