~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-10-14 22:55:45 UTC
  • mfrom: (11678.2.11 bug650343-2)
  • Revision ID: launchpad@pqm.canonical.com-20101014225545-4z0vq62ac3yi5jed
[r=leonardr][ui=none][bug=650343] Add X-Launchpad-Original-To to
        recipient lists;
        move some related files from c/l/mail to lp/services/mail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from canonical.launchpad.interfaces.gpghandler import IGPGHandler
26
26
from canonical.launchpad.interfaces.mail import IWeaklyAuthenticatedPrincipal
27
27
from canonical.launchpad.mail import signed_message_from_string
28
 
from canonical.launchpad.mail.incoming import (
 
28
from canonical.testing.layers import DatabaseFunctionalLayer
 
29
from lp.registry.interfaces.person import IPersonSet
 
30
from lp.services.mail.incoming import (
29
31
    authenticateEmail,
30
32
    canonicalise_line_endings,
31
33
    )
32
 
from canonical.testing.layers import DatabaseFunctionalLayer
33
 
from lp.registry.interfaces.person import IPersonSet
34
34
from lp.testing import TestCaseWithFactory
35
35
from lp.testing.factory import GPGSigningContext
36
36
 
37
37
 
38
38
class TestSignedMessage(TestCaseWithFactory):
39
 
    """Test SignedMessage class correctly extracts and verifies the GPG signatures."""
 
39
    "Test SignedMessage class correctly extracts and verifies GPG signatures."
40
40
 
41
41
    layer = DatabaseFunctionalLayer
42
42
 
154
154
 
155
155
def test_suite():
156
156
    return unittest.TestLoader().loadTestsFromName(__name__)
157