blob: 5b1b38c0f01a5c6d61bcb17a3388cf1258ec67d6 [file] [log] [blame]
R. David Murray87e20742009-05-23 01:30:26 +00001#!/usr/bin/env python
2
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()