blob: 5ca4195b9a07e06950195852bca8e1b8d9ac7760 [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
7support.requires(
8 "network",
9 "use of network resource is not enabled and "
10 "test requires Internet access for communication with smtp.gmail.com:465",
11 )
12
13class SmtpSSLTest(unittest.TestCase):
14 testServer = 'smtp.gmail.com'
15 remotePort = 465
16
17 def test_connect(self):
18 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
19 server.ehlo()
20 server.quit()
21
22def test_main():
23 support.run_unittest(SmtpSSLTest)
24
25if __name__ == "__main__":
26 test_main()