~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/runners/tests/test_incoming.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:
17
17
 
18
18
"""Test the incoming queue runner."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'TestIncoming',
25
22
    ]
32
29
from mailman.config import config
33
30
from mailman.runners.incoming import IncomingRunner
34
31
from mailman.testing.helpers import (
35
 
    get_queue_messages,
36
 
    make_testable_runner,
 
32
    get_queue_messages, make_testable_runner,
37
33
    specialized_message_from_string as mfs)
38
34
from mailman.testing.layers import ConfigLayer
39
35
 
76
72
 
77
73
    def test_posting(self):
78
74
        # A message posted to the list goes through the posting chain.
79
 
        msgdata = dict(listname='test@example.com')
 
75
        msgdata = dict(listid='test.example.com')
80
76
        config.switchboards['in'].enqueue(self._msg, msgdata)
81
77
        self._in.run()
82
78
        messages = get_queue_messages('out')
85
81
 
86
82
    def test_owner(self):
87
83
        # A message posted to the list goes through the posting chain.
88
 
        msgdata = dict(listname='test@example.com',
 
84
        msgdata = dict(listid='test.example.com',
89
85
                       to_owner=True)
90
86
        config.switchboards['in'].enqueue(self._msg, msgdata)
91
87
        self._in.run()