class MailerTest(unittest.TestCase): def setUp(self): self.mailer = Mailer('de01exm68.ds.mot.com') self.mailer.fromAddr('*****@*****.**') self.mailer.toAddr(['*****@*****.**']) def test_send(self): self.mailer.subject('test python smtp lib') self.mailer.content('test content') self.mailer.attach(os.getcwd()+"/test/mail_merged.html") self.mailer.attach(os.getcwd()+"/test/Coverage_full.csv") self.mailer.send() print("mail has been sent out!")