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)
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, )
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)
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)