blob: 6f7f9ef7f43aac5f7094507465152893632abe98 [file] [log] [blame]
Benjamin Peterson90f5ba52010-03-11 22:53:45 +00001#!/usr/bin/env python3
R. David Murray87e20742009-05-23 01:30:26 +00002
3import unittest
4from test import support
5import smtplib
6
R. David Murrayeccb2ce2009-05-23 02:36:15 +00007support.requires("network")
R. David Murray87e20742009-05-23 01:30:26 +00008
9class SmtpSSLTest(unittest.TestCase):
10 testServer = 'smtp.gmail.com'
11 remotePort = 465
12
13 def test_connect(self):
R. David Murrayeccb2ce2009-05-23 02:36:15 +000014 support.get_attribute(smtplib, 'SMTP_SSL')
R. David Murray87e20742009-05-23 01:30:26 +000015 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
16 server.ehlo()
17 server.quit()
18
19def test_main():
20 support.run_unittest(SmtpSSLTest)
21
22if __name__ == "__main__":
23 test_main()