~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/mail/tests/test_incoming.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-13 01:11:42 UTC
  • mfrom: (13668.1.31 private-bug-0)
  • Revision ID: launchpad@pqm.canonical.com-20110813011142-b8xvpxhdja422ln2
[rs=sinzui][no-qa] Moved canonical.launchpad.mail to lp.services.mail,
 bugs.mail, code.mail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
from doctest import DocTestSuite
6
6
import os
7
7
import unittest
8
8
 
9
 
from testtools.matchers import Equals, Is
 
9
from testtools.matchers import (
 
10
    Equals,
 
11
    Is,
 
12
    )
10
13
import transaction
11
14
from zope.security.management import setSecurityPolicy
12
15
 
13
16
from canonical.config import config
14
17
from canonical.launchpad.ftests import import_secret_test_key
15
 
from canonical.launchpad.mail.ftests.helpers import testmails_path
16
18
from canonical.launchpad.testing.systemdocs import LayeredDocFileSuite
17
19
from canonical.launchpad.webapp.authorization import LaunchpadSecurityPolicy
18
 
from canonical.launchpad.mail import (
19
 
    helpers,
20
 
    )
21
20
from canonical.testing.layers import LaunchpadZopelessLayer
22
21
from lp.services.log.logger import BufferLogger
 
22
from lp.services.mail import helpers
23
23
from lp.services.mail.incoming import (
24
24
    authenticateEmail,
25
25
    extract_addresses,
29
29
    )
30
30
from lp.services.mail.sendmail import MailController
31
31
from lp.services.mail.stub import TestMailer
 
32
from lp.services.mail.tests.helpers import testmails_path
32
33
from lp.testing import TestCaseWithFactory
33
34
from lp.testing.factory import GPGSigningContext
34
35
from lp.testing.mail_helpers import pop_notifications