def test_adding_email_sends_verification_email(self):
        self.hit_email_spt('add-email', 'alice@gratipay.com')
        assert self.mailer.call_count == 1
        last_email = self.get_last_email()
        assert last_email['to'] == 'alice <alice@gratipay.com>'
        expected = "We've received a request to connect alice@gratipay.com to the alice account on Gratipay"
        assert expected in last_email['body_text']
dataset/ETHPy150Open gratipay/gratipay.com/tests/py/test_email.py/TestEmail.test_adding_email_sends_verification_email/original