def test_get_creds(self): creds = scraper.get_creds() self.assertEquals("bridgt", creds['username'])
def main(): with open('text_template.txt', encoding="utf8") as text: body = text.read() with open('email_template.html', encoding="utf8") as html: html_body = html.read() send_mail(scraper.get_creds(), '', 'Notification from MyVote', body, html_body)