def test_footer(self):
     footer = MailFooter.monitored('*****@*****.**', 'http://test1.com',
                                   'http://test2.com')
     assert '[email protected] is subscribed to http://test1.com' in footer
     assert 'admin can change settings at http://test2.com' in footer
     footer = MailFooter.standard(M.Notification())
     assert 'Sent from sourceforge.net because you indicated interest in' in footer
 def test_footer(self):
     footer = MailFooter.monitored('*****@*****.**', 'http://test1.com',
                                   'http://test2.com')
     assert '[email protected] is subscribed to http://test1.com' in footer
     assert 'admin can change settings at http://test2.com' in footer
     footer = MailFooter.standard(M.Notification())
     self.assertIn('Sent from localhost because you indicated interest',
                   footer)
 def test_footer(self):
     footer = MailFooter.monitored(
             '*****@*****.**',
             'http://test1.com',
             'http://test2.com')
     assert '[email protected] is subscribed to http://test1.com' in footer
     assert 'admin can change settings at http://test2.com' in footer
     footer = MailFooter.standard(M.Notification())
     assert 'Sent from sourceforge.net because you indicated interest in' in footer
 def test_footer(self):
     footer = MailFooter.monitored(
         '*****@*****.**',
         'http://test1.com',
         'http://test2.com')
     assert '[email protected] is subscribed to http://test1.com' in footer
     assert 'admin can change settings at http://test2.com' in footer
     footer = MailFooter.standard(M.Notification())
     self.assertIn('Sent from localhost because you indicated interest',
                   footer)
Exemple #5
0
 def get_mail_footer(self, notification, toaddr):
     if toaddr and toaddr == self.monitoring_email:
         return MailFooter.monitored(
             toaddr,
             h.absurl(self.app.url),
             h.absurl("{0}admin/{1}/options".format(self.project.url(), self.app.config.options.mount_point)),
         )
     return MailFooter.standard(
         notification,
         self.app.config.options.get("AllowEmailPosting", True),
         discussion_disabled=self.discussion_disabled,
     )
Exemple #6
0
 def get_mail_footer(self, notification, toaddr):
     if toaddr and toaddr == self.monitoring_email:
         return MailFooter.monitored(
             toaddr, h.absurl(self.app.url),
             h.absurl('{0}admin/{1}/options'.format(
                 self.project.url(), self.app.config.options.mount_point)))
     return super(Ticket, self).get_mail_footer(notification, toaddr)
Exemple #7
0
 def get_mail_footer(self, notification, toaddr):
     if toaddr and toaddr == self.monitoring_email:
         return MailFooter.monitored(
             toaddr,
             h.absurl(self.url()),
             h.absurl("{0}admin/{1}/forums".format(self.project.url(), self.app.config.options.mount_point)),
         )
     return super(Forum, self).get_mail_footer(notification, toaddr)