Exemplo n.º 1
0
    def xtestSendEmail_Live(self):
        """Remove 'x' from the test name, set correct values for
        email_address and smtp_host, and run the test manually.
        You should receive email."""

        email_address = '<*****@*****.**>'
        smtp_host = '<SMTP host>'

        tm = TMSaveCache({}, conf_filename=self.conf_filename)
        tm.snapshotMarketplaceId = 'ABC'
        tm.createImageInfo = {}
        tm.createImageInfo['creatorEmail'] = email_address
        tm.manifestNotSignedPath = self.conf_filename
        tm.configHolder.set('smtp_host', smtp_host)

        tm._sendEmailToUser()