~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-26 06:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14049.
  • Revision ID: jeroen.vermeulen@canonical.com-20110926063007-1fb5eelnidpnra9a
Fix lots of lint in recently-changed files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
        self.factory.makeEmail(
276
276
            person=person,
277
277
            address='dkimtest@example.com')
278
 
        self._dns_responses['example._domainkey.canonical.com.'] = \
279
 
            sample_dns            
280
 
        tweaked_message = 'Sender: dkimtest@canonical.com\n' + \
281
 
            plain_content.replace(
282
 
                'From: Foo Bar <foo.bar@canonical.com>',
283
 
                'From: DKIM Test <dkimtest@example.com>')
 
278
        self._dns_responses['example._domainkey.canonical.com.'] = sample_dns
 
279
        tweaked_message = (
 
280
            "Sender: dkimtest@canonical.com\n" + plain_content.replace(
 
281
                "From: Foo Bar <foo.bar@canonical.com>",
 
282
                "From: DKIM Test <dkimtest@example.com>"))
284
283
        signed_message = self.fake_signing(tweaked_message)
285
284
        principal = authenticateEmail(
286
285
            signed_message_from_string(signed_message))
287
 
        self.assertStronglyAuthenticated(principal, signed_message)
 
 
b'\\ No newline at end of file'
 
286
        self.assertStronglyAuthenticated(principal, signed_message)