Exemple #1
0
 def setUp(self):
     """Create a team with a list and subscribe self.member to it."""
     super(MailingListAPITestCase, self).setUp()
     self.team, self.mailing_list = new_team('team-a', with_list=True)
     self.member = self.factory.makePersonByName('Bob')
     with person_logged_in(self.member):
         self.member.join(self.team)
     self.mailing_list.subscribe(self.member)
     self.api = MailingListAPIView(None, None)
     self.team_expected = sorted([
         (config.mailman.archive_address, '', 0, ENABLED),
         ('*****@*****.**', 'Bob Person', 0, ENABLED),
         ('*****@*****.**', u'Bob Person', 0, BYUSER),
         ('*****@*****.**', u'No Privileges Person', 0, BYUSER),
     ])
Exemple #2
0
 def setUp(self):
     super(MailingListAPIMessageTestCase, self).setUp()
     self.mailinglist_api = MailingListAPIView(None, None)
     self.mailinglist_set = getUtility(IMailingListSet)
     self.message_set = getUtility(IMessageSet)
     self.message_approval_set = getUtility(IMessageApprovalSet)
Exemple #3
0
 def setUp(self):
     super(MailingListAPIWorkflowTestCase, self).setUp()
     self.mailinglist_api = MailingListAPIView(None, None)
     self.mailinglist_set = getUtility(IMailingListSet)