~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/tests/test_mlists.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-04 22:21:41 UTC
  • mfrom: (14617.3.4 mailinglists-use-people)
  • Revision ID: launchpad@pqm.canonical.com-20120104222141-0g1fa43d7ibeuytg
[r=sinzui][no-qa] Clean up
        MailingList(Set).get(Subscribed|Sender)Address,
        and fix them to not use EmailAddress.account.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
 
91
91
    def assertAddresses(self, *addresses):
92
92
        """Assert that `addresses` are subscribed to the mailing list."""
93
 
        subscribers = set(
94
 
            email.email
95
 
            for email in self.mailing_list.getSubscribedAddresses())
 
93
        subscribers = set(self.mailing_list.getSubscribedAddresses())
96
94
        expected = set(addresses)
97
95
        self.assertEqual(subscribers, expected)
98
96