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
Ejemplo n.º 2
0
 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
Ejemplo n.º 4
0
 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)
Ejemplo n.º 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,
     )