Ignore:
Timestamp:
2 Aug 2016, 08:55:19 (8 years ago)
Author:
Henrik Bettermann
Message:

Draft email to be sent to referees.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r14011 r14040  
    440440
    441441class IApplicantTestData(IKofaObject):
    442     """This interface is for demonstration and test purposes only.
     442    """This interface is for demonstration and testing only.
    443443    It can be omitted in customized versions of Kofa.
    444444    """
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r14016 r14040  
    16621662        self.browser.getControl(name="confirm_passport").value = True
    16631663        self.browser.getControl("Finally Submit").click()
    1664         self.assertEqual(
    1665             [u'Sending email from no-reply@waeup.org to linda@forest.de:',
    1666              u'Message:',
    1667              u'msg: MIME-Version: 1.0',
    1668              u'msg: Content-Type: text/plain; charset="us-ascii"',
    1669              u'msg: Content-Transfer-Encoding: 7bit',
    1670              u'msg: From: Administrator <no-reply@waeup.org>',
    1671              u'msg: To: Linda Tree <linda@forest.de>',
    1672              u'msg: Reply-To: Administrator <contact@waeup.org>',
    1673              u'msg: Subject: Request for referee report from Sample University',
    1674              u'msg: ',
    1675             ], self.get_fake_smtp_output().split('\n')[:10]
     1664        mandate_id_0 = self.app['mandates'].keys()[0]
     1665        mandate_id_1 = self.app['mandates'].keys()[1]
     1666        self.assertMatches(
     1667            'Sending email from no-reply@waeup.org to linda@forest.de:'
     1668            '\nMessage:'
     1669            '\nmsg: MIME-Version: 1.0\nmsg: Content-Type: text/plain; charset="us-ascii"'
     1670            '\nmsg: Content-Transfer-Encoding: 7bit'
     1671            '\nmsg: From: Administrator <no-reply@waeup.org>'
     1672            '\nmsg: To: Linda Tree <linda@forest.de>'
     1673            '\nmsg: Reply-To: Administrator <contact@waeup.org>'
     1674            '\nmsg: Subject: Request for referee report from Sample University'
     1675            '\nmsg: '
     1676            '\nmsg: Dear Linda Tree,'
     1677            '\nmsg: '
     1678            '\nmsg: The candidate with Id app2014_372052 and name John Anthony Tester applied to'
     1679            '\nmsg: the Sample University to study Unnamed Certificate for the 2014/2015 session.'
     1680            '\nmsg: The candidate has listed you as referee. You are thus required to kindly use'
     1681            '\nmsg: the link below to provide your referral remarks on or before'
     1682            '\nmsg: 2016-08-12 08:32:41.619671+00:00.'
     1683            '\nmsg: '
     1684            '\nmsg: Report link: http://localhost/app/mandate?mandate_id=%s'
     1685            '\nmsg: '
     1686            '\nmsg: Thank You'
     1687            '\nmsg: '
     1688            '\nmsg: The Secretary'
     1689            '\nmsg: Post Graduate School'
     1690            '\nmsg: Sample University'
     1691            '\nmsg: '
     1692            '\nSending email from no-reply@waeup.org to otis@stones.de:'
     1693            '\nMessage:'
     1694            '\nmsg: MIME-Version: 1.0'
     1695            '\nmsg: Content-Type: text/plain; charset="us-ascii"'
     1696            '\nmsg: Content-Transfer-Encoding: 7bit'
     1697            '\nmsg: From: Administrator <no-reply@waeup.org>'
     1698            '\nmsg: To: Otis Stone <otis@stones.de>'
     1699            '\nmsg: Reply-To: Administrator <contact@waeup.org>'
     1700            '\nmsg: Subject: Request for referee report from Sample University'
     1701            '\nmsg: '
     1702            '\nmsg: Dear Otis Stone,'
     1703            '\nmsg: '
     1704            '\nmsg: The candidate with Id app2014_<6-DIGITS> and name John Anthony Tester applied to'
     1705            '\nmsg: the Sample University to study Unnamed Certificate for the 2014/2015 session.'
     1706            '\nmsg: The candidate has listed you as referee. You are thus required to kindly use'
     1707            '\nmsg: the link below to provide your referral remarks on or before'
     1708            '\nmsg: <YYYY-MM-DD hh:mm:ss>.<6-DIGITS>+00:00.'
     1709            '\nmsg: '
     1710            '\nmsg: Report link: http://localhost/app/mandate?mandate_id=%s'
     1711            '\nmsg: '
     1712            '\nmsg: Thank You'
     1713            '\nmsg: '
     1714            '\nmsg: The Secretary'
     1715            '\nmsg: Post Graduate School'
     1716            '\nmsg: Sample University'
     1717            '\nmsg: ' % (mandate_id_0, mandate_id_1),
     1718            self.get_fake_smtp_output()
    16761719            )
    16771720        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.