blob: 623b16dac3c96db09ac56a47aae7e0b7b93ebd5a [file] [log] [blame]
Facundo Batista16ed5b42007-07-24 21:20:42 +00001import asyncore
Facundo Batista1bc8d632007-08-21 16:57:18 +00002import email.utils
Facundo Batista366d6262007-03-28 18:25:54 +00003import socket
4import threading
Facundo Batista16ed5b42007-07-24 21:20:42 +00005import smtpd
Facundo Batista366d6262007-03-28 18:25:54 +00006import smtplib
Facundo Batista16ed5b42007-07-24 21:20:42 +00007import StringIO
8import sys
Facundo Batista366d6262007-03-28 18:25:54 +00009import time
Facundo Batista16ed5b42007-07-24 21:20:42 +000010import select
Facundo Batista366d6262007-03-28 18:25:54 +000011
12from unittest import TestCase
13from test import test_support
14
Trent Nelsone41b0062008-04-08 23:47:30 +000015HOST = test_support.HOST
Facundo Batista366d6262007-03-28 18:25:54 +000016
Trent Nelsone41b0062008-04-08 23:47:30 +000017def server(evt, buf, serv):
Neal Norwitz75992ed2008-02-26 08:04:59 +000018 serv.listen(5)
19 evt.set()
Facundo Batista366d6262007-03-28 18:25:54 +000020 try:
21 conn, addr = serv.accept()
22 except socket.timeout:
23 pass
24 else:
Facundo Batista412b8b62007-08-01 23:18:36 +000025 n = 500
Facundo Batista16ed5b42007-07-24 21:20:42 +000026 while buf and n > 0:
27 r, w, e = select.select([], [conn], [])
28 if w:
29 sent = conn.send(buf)
30 buf = buf[sent:]
31
32 n -= 1
Facundo Batista16ed5b42007-07-24 21:20:42 +000033
Facundo Batista366d6262007-03-28 18:25:54 +000034 conn.close()
35 finally:
36 serv.close()
37 evt.set()
38
39class GeneralTests(TestCase):
Neal Norwitz0d4c06e2007-04-25 06:30:05 +000040
Facundo Batista366d6262007-03-28 18:25:54 +000041 def setUp(self):
42 self.evt = threading.Event()
Trent Nelsone41b0062008-04-08 23:47:30 +000043 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
44 self.sock.settimeout(15)
45 self.port = test_support.bind_port(self.sock)
46 servargs = (self.evt, "220 Hola mundo\n", self.sock)
Facundo Batista16ed5b42007-07-24 21:20:42 +000047 threading.Thread(target=server, args=servargs).start()
Neal Norwitz75992ed2008-02-26 08:04:59 +000048 self.evt.wait()
49 self.evt.clear()
Facundo Batista366d6262007-03-28 18:25:54 +000050
51 def tearDown(self):
52 self.evt.wait()
53
Facundo Batista16ed5b42007-07-24 21:20:42 +000054 def testBasic1(self):
Facundo Batista366d6262007-03-28 18:25:54 +000055 # connects
Trent Nelsone41b0062008-04-08 23:47:30 +000056 smtp = smtplib.SMTP(HOST, self.port)
Facundo Batista4f1b1ed2008-05-29 16:39:26 +000057 smtp.close()
Neal Norwitz0d4c06e2007-04-25 06:30:05 +000058
Facundo Batista16ed5b42007-07-24 21:20:42 +000059 def testBasic2(self):
60 # connects, include port in host name
Trent Nelsone41b0062008-04-08 23:47:30 +000061 smtp = smtplib.SMTP("%s:%s" % (HOST, self.port))
Facundo Batista4f1b1ed2008-05-29 16:39:26 +000062 smtp.close()
Facundo Batista16ed5b42007-07-24 21:20:42 +000063
64 def testLocalHostName(self):
65 # check that supplied local_hostname is used
Trent Nelsone41b0062008-04-08 23:47:30 +000066 smtp = smtplib.SMTP(HOST, self.port, local_hostname="testhost")
Facundo Batista16ed5b42007-07-24 21:20:42 +000067 self.assertEqual(smtp.local_hostname, "testhost")
Facundo Batista4f1b1ed2008-05-29 16:39:26 +000068 smtp.close()
Facundo Batista16ed5b42007-07-24 21:20:42 +000069
Facundo Batista366d6262007-03-28 18:25:54 +000070 def testTimeoutDefault(self):
Facundo Batista4f1b1ed2008-05-29 16:39:26 +000071 self.assertTrue(socket.getdefaulttimeout() is None)
72 socket.setdefaulttimeout(30)
73 try:
74 smtp = smtplib.SMTP(HOST, self.port)
75 finally:
76 socket.setdefaulttimeout(None)
Facundo Batista366d6262007-03-28 18:25:54 +000077 self.assertEqual(smtp.sock.gettimeout(), 30)
Facundo Batista4f1b1ed2008-05-29 16:39:26 +000078 smtp.close()
Facundo Batista366d6262007-03-28 18:25:54 +000079
80 def testTimeoutNone(self):
Facundo Batista4f1b1ed2008-05-29 16:39:26 +000081 self.assertTrue(socket.getdefaulttimeout() is None)
Facundo Batista366d6262007-03-28 18:25:54 +000082 socket.setdefaulttimeout(30)
83 try:
Trent Nelsone41b0062008-04-08 23:47:30 +000084 smtp = smtplib.SMTP(HOST, self.port, timeout=None)
Facundo Batista366d6262007-03-28 18:25:54 +000085 finally:
Facundo Batista4f1b1ed2008-05-29 16:39:26 +000086 socket.setdefaulttimeout(None)
87 self.assertTrue(smtp.sock.gettimeout() is None)
88 smtp.close()
89
90 def testTimeoutValue(self):
91 smtp = smtplib.SMTP(HOST, self.port, timeout=30)
Facundo Batista366d6262007-03-28 18:25:54 +000092 self.assertEqual(smtp.sock.gettimeout(), 30)
Facundo Batista4f1b1ed2008-05-29 16:39:26 +000093 smtp.close()
Facundo Batista366d6262007-03-28 18:25:54 +000094
95
Facundo Batista1bc8d632007-08-21 16:57:18 +000096# Test server thread using the specified SMTP server class
Trent Nelsone41b0062008-04-08 23:47:30 +000097def debugging_server(serv, serv_evt, client_evt):
Neal Norwitz75992ed2008-02-26 08:04:59 +000098 serv_evt.set()
Facundo Batista16ed5b42007-07-24 21:20:42 +000099
100 try:
Facundo Batista412b8b62007-08-01 23:18:36 +0000101 if hasattr(select, 'poll'):
102 poll_fun = asyncore.poll2
103 else:
104 poll_fun = asyncore.poll
105
106 n = 1000
107 while asyncore.socket_map and n > 0:
108 poll_fun(0.01, asyncore.socket_map)
109
110 # when the client conversation is finished, it will
111 # set client_evt, and it's then ok to kill the server
Benjamin Peterson0fbcf692008-06-11 17:27:50 +0000112 if client_evt.is_set():
Facundo Batista412b8b62007-08-01 23:18:36 +0000113 serv.close()
114 break
115
116 n -= 1
117
Facundo Batista16ed5b42007-07-24 21:20:42 +0000118 except socket.timeout:
119 pass
120 finally:
Benjamin Peterson0fbcf692008-06-11 17:27:50 +0000121 if not client_evt.is_set():
Neal Norwitz75992ed2008-02-26 08:04:59 +0000122 # allow some time for the client to read the result
123 time.sleep(0.5)
124 serv.close()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000125 asyncore.close_all()
Facundo Batista412b8b62007-08-01 23:18:36 +0000126 serv_evt.set()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000127
128MSG_BEGIN = '---------- MESSAGE FOLLOWS ----------\n'
129MSG_END = '------------ END MESSAGE ------------\n'
130
Facundo Batista1bc8d632007-08-21 16:57:18 +0000131# NOTE: Some SMTP objects in the tests below are created with a non-default
132# local_hostname argument to the constructor, since (on some systems) the FQDN
133# lookup caused by the default local_hostname sometimes takes so long that the
Facundo Batista412b8b62007-08-01 23:18:36 +0000134# test server times out, causing the test to fail.
Facundo Batista1bc8d632007-08-21 16:57:18 +0000135
136# Test behavior of smtpd.DebuggingServer
Facundo Batista16ed5b42007-07-24 21:20:42 +0000137class DebuggingServerTests(TestCase):
138
139 def setUp(self):
Facundo Batista412b8b62007-08-01 23:18:36 +0000140 # temporarily replace sys.stdout to capture DebuggingServer output
Facundo Batista16ed5b42007-07-24 21:20:42 +0000141 self.old_stdout = sys.stdout
142 self.output = StringIO.StringIO()
143 sys.stdout = self.output
144
Facundo Batista412b8b62007-08-01 23:18:36 +0000145 self.serv_evt = threading.Event()
146 self.client_evt = threading.Event()
Trent Nelsone41b0062008-04-08 23:47:30 +0000147 self.port = test_support.find_unused_port()
148 self.serv = smtpd.DebuggingServer((HOST, self.port), ('nowhere', -1))
149 serv_args = (self.serv, self.serv_evt, self.client_evt)
Facundo Batista412b8b62007-08-01 23:18:36 +0000150 threading.Thread(target=debugging_server, args=serv_args).start()
151
152 # wait until server thread has assigned a port number
Neal Norwitz75992ed2008-02-26 08:04:59 +0000153 self.serv_evt.wait()
154 self.serv_evt.clear()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000155
156 def tearDown(self):
Facundo Batista412b8b62007-08-01 23:18:36 +0000157 # indicate that the client is finished
158 self.client_evt.set()
159 # wait for the server thread to terminate
160 self.serv_evt.wait()
161 # restore sys.stdout
Facundo Batista16ed5b42007-07-24 21:20:42 +0000162 sys.stdout = self.old_stdout
163
164 def testBasic(self):
165 # connect
Trent Nelsone41b0062008-04-08 23:47:30 +0000166 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
Facundo Batista412b8b62007-08-01 23:18:36 +0000167 smtp.quit()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000168
Facundo Batista1bc8d632007-08-21 16:57:18 +0000169 def testNOOP(self):
Trent Nelsone41b0062008-04-08 23:47:30 +0000170 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000171 expected = (250, 'Ok')
172 self.assertEqual(smtp.noop(), expected)
173 smtp.quit()
174
175 def testRSET(self):
Trent Nelsone41b0062008-04-08 23:47:30 +0000176 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000177 expected = (250, 'Ok')
178 self.assertEqual(smtp.rset(), expected)
179 smtp.quit()
180
181 def testNotImplemented(self):
182 # EHLO isn't implemented in DebuggingServer
Trent Nelsone41b0062008-04-08 23:47:30 +0000183 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
Facundo Batista412b8b62007-08-01 23:18:36 +0000184 expected = (502, 'Error: command "EHLO" not implemented')
185 self.assertEqual(smtp.ehlo(), expected)
186 smtp.quit()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000187
Facundo Batista1bc8d632007-08-21 16:57:18 +0000188 def testVRFY(self):
189 # VRFY isn't implemented in DebuggingServer
Trent Nelsone41b0062008-04-08 23:47:30 +0000190 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000191 expected = (502, 'Error: command "VRFY" not implemented')
192 self.assertEqual(smtp.vrfy('nobody@nowhere.com'), expected)
193 self.assertEqual(smtp.verify('nobody@nowhere.com'), expected)
194 smtp.quit()
195
196 def testSecondHELO(self):
197 # check that a second HELO returns a message that it's a duplicate
198 # (this behavior is specific to smtpd.SMTPChannel)
Trent Nelsone41b0062008-04-08 23:47:30 +0000199 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000200 smtp.helo()
201 expected = (503, 'Duplicate HELO/EHLO')
202 self.assertEqual(smtp.helo(), expected)
203 smtp.quit()
204
Facundo Batista16ed5b42007-07-24 21:20:42 +0000205 def testHELP(self):
Trent Nelsone41b0062008-04-08 23:47:30 +0000206 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
Facundo Batista16ed5b42007-07-24 21:20:42 +0000207 self.assertEqual(smtp.help(), 'Error: command "HELP" not implemented')
Facundo Batista412b8b62007-08-01 23:18:36 +0000208 smtp.quit()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000209
210 def testSend(self):
211 # connect and send mail
212 m = 'A test message'
Trent Nelsone41b0062008-04-08 23:47:30 +0000213 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
Facundo Batista16ed5b42007-07-24 21:20:42 +0000214 smtp.sendmail('John', 'Sally', m)
Neal Norwitze39be532008-08-25 03:52:40 +0000215 # XXX(nnorwitz): this test is flaky and dies with a bad file descriptor
216 # in asyncore. This sleep might help, but should really be fixed
217 # properly by using an Event variable.
218 time.sleep(0.01)
Facundo Batista412b8b62007-08-01 23:18:36 +0000219 smtp.quit()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000220
Facundo Batista412b8b62007-08-01 23:18:36 +0000221 self.client_evt.set()
222 self.serv_evt.wait()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000223 self.output.flush()
224 mexpect = '%s%s\n%s' % (MSG_BEGIN, m, MSG_END)
225 self.assertEqual(self.output.getvalue(), mexpect)
226
227
Neal Norwitz75992ed2008-02-26 08:04:59 +0000228class NonConnectingTests(TestCase):
229
230 def testNotConnected(self):
231 # Test various operations on an unconnected SMTP object that
232 # should raise exceptions (at present the attempt in SMTP.send
233 # to reference the nonexistent 'sock' attribute of the SMTP object
234 # causes an AttributeError)
235 smtp = smtplib.SMTP()
236 self.assertRaises(smtplib.SMTPServerDisconnected, smtp.ehlo)
237 self.assertRaises(smtplib.SMTPServerDisconnected,
238 smtp.send, 'test msg')
239
240 def testNonnumericPort(self):
241 # check that non-numeric port raises socket.error
242 self.assertRaises(socket.error, smtplib.SMTP,
243 "localhost", "bogus")
244 self.assertRaises(socket.error, smtplib.SMTP,
245 "localhost:bogus")
246
247
Facundo Batista1bc8d632007-08-21 16:57:18 +0000248# test response of client to a non-successful HELO message
Facundo Batista16ed5b42007-07-24 21:20:42 +0000249class BadHELOServerTests(TestCase):
250
251 def setUp(self):
252 self.old_stdout = sys.stdout
253 self.output = StringIO.StringIO()
254 sys.stdout = self.output
255
256 self.evt = threading.Event()
Trent Nelsone41b0062008-04-08 23:47:30 +0000257 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
258 self.sock.settimeout(15)
259 self.port = test_support.bind_port(self.sock)
260 servargs = (self.evt, "199 no hello for you!\n", self.sock)
Facundo Batista16ed5b42007-07-24 21:20:42 +0000261 threading.Thread(target=server, args=servargs).start()
Neal Norwitz75992ed2008-02-26 08:04:59 +0000262 self.evt.wait()
263 self.evt.clear()
Facundo Batista16ed5b42007-07-24 21:20:42 +0000264
265 def tearDown(self):
266 self.evt.wait()
267 sys.stdout = self.old_stdout
268
269 def testFailingHELO(self):
Facundo Batista412b8b62007-08-01 23:18:36 +0000270 self.assertRaises(smtplib.SMTPConnectError, smtplib.SMTP,
Trent Nelsone41b0062008-04-08 23:47:30 +0000271 HOST, self.port, 'localhost', 3)
Facundo Batista366d6262007-03-28 18:25:54 +0000272
Facundo Batista1bc8d632007-08-21 16:57:18 +0000273
274sim_users = {'Mr.A@somewhere.com':'John A',
275 'Ms.B@somewhere.com':'Sally B',
276 'Mrs.C@somewhereesle.com':'Ruth C',
277 }
278
R. David Murray3724d6c2009-05-23 21:48:06 +0000279sim_auth = ('Mr.A@somewhere.com', 'somepassword')
280sim_auth_b64encoded = 'AE1yLkFAc29tZXdoZXJlLmNvbQBzb21lcGFzc3dvcmQ='
281
Facundo Batista1bc8d632007-08-21 16:57:18 +0000282sim_lists = {'list-1':['Mr.A@somewhere.com','Mrs.C@somewhereesle.com'],
283 'list-2':['Ms.B@somewhere.com',],
284 }
285
286# Simulated SMTP channel & server
287class SimSMTPChannel(smtpd.SMTPChannel):
288 def smtp_EHLO(self, arg):
289 resp = '250-testhost\r\n' \
290 '250-EXPN\r\n' \
291 '250-SIZE 20000000\r\n' \
292 '250-STARTTLS\r\n' \
293 '250-DELIVERBY\r\n' \
R. David Murray3724d6c2009-05-23 21:48:06 +0000294 '250-AUTH PLAIN\r\n' \
Facundo Batista1bc8d632007-08-21 16:57:18 +0000295 '250 HELP'
296 self.push(resp)
297
298 def smtp_VRFY(self, arg):
299# print '\nsmtp_VRFY(%r)\n' % arg
300
301 raw_addr = email.utils.parseaddr(arg)[1]
302 quoted_addr = smtplib.quoteaddr(arg)
303 if raw_addr in sim_users:
304 self.push('250 %s %s' % (sim_users[raw_addr], quoted_addr))
305 else:
306 self.push('550 No such user: %s' % arg)
307
308 def smtp_EXPN(self, arg):
309# print '\nsmtp_EXPN(%r)\n' % arg
310
311 list_name = email.utils.parseaddr(arg)[1].lower()
312 if list_name in sim_lists:
313 user_list = sim_lists[list_name]
314 for n, user_email in enumerate(user_list):
315 quoted_addr = smtplib.quoteaddr(user_email)
316 if n < len(user_list) - 1:
317 self.push('250-%s %s' % (sim_users[user_email], quoted_addr))
318 else:
319 self.push('250 %s %s' % (sim_users[user_email], quoted_addr))
320 else:
321 self.push('550 No access for you!')
322
R. David Murray3724d6c2009-05-23 21:48:06 +0000323 def smtp_AUTH(self, arg):
324 mech, auth = arg.split()
325 if mech.lower() == 'plain':
326 if auth == sim_auth_b64encoded:
327 self.push('235 ok, go ahead')
328 else:
329 self.push('550 No access for you!')
330 else:
331 self.push('504 auth type unimplemented')
332
Facundo Batista1bc8d632007-08-21 16:57:18 +0000333
334class SimSMTPServer(smtpd.SMTPServer):
335 def handle_accept(self):
336 conn, addr = self.accept()
337 channel = SimSMTPChannel(self, conn, addr)
338
339 def process_message(self, peer, mailfrom, rcpttos, data):
340 pass
341
342
343# Test various SMTP & ESMTP commands/behaviors that require a simulated server
344# (i.e., something with more features than DebuggingServer)
345class SMTPSimTests(TestCase):
346
347 def setUp(self):
348 self.serv_evt = threading.Event()
349 self.client_evt = threading.Event()
Trent Nelsone41b0062008-04-08 23:47:30 +0000350 self.port = test_support.find_unused_port()
351 self.serv = SimSMTPServer((HOST, self.port), ('nowhere', -1))
352 serv_args = (self.serv, self.serv_evt, self.client_evt)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000353 threading.Thread(target=debugging_server, args=serv_args).start()
354
355 # wait until server thread has assigned a port number
Neal Norwitz75992ed2008-02-26 08:04:59 +0000356 self.serv_evt.wait()
357 self.serv_evt.clear()
Facundo Batista1bc8d632007-08-21 16:57:18 +0000358
359 def tearDown(self):
360 # indicate that the client is finished
361 self.client_evt.set()
362 # wait for the server thread to terminate
363 self.serv_evt.wait()
364
365 def testBasic(self):
366 # smoke test
Trent Nelsone41b0062008-04-08 23:47:30 +0000367 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000368 smtp.quit()
369
370 def testEHLO(self):
Trent Nelsone41b0062008-04-08 23:47:30 +0000371 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000372
373 # no features should be present before the EHLO
374 self.assertEqual(smtp.esmtp_features, {})
375
376 # features expected from the test server
377 expected_features = {'expn':'',
378 'size': '20000000',
379 'starttls': '',
380 'deliverby': '',
R. David Murray3724d6c2009-05-23 21:48:06 +0000381 'auth': ' PLAIN',
Facundo Batista1bc8d632007-08-21 16:57:18 +0000382 'help': '',
383 }
384
385 smtp.ehlo()
386 self.assertEqual(smtp.esmtp_features, expected_features)
387 for k in expected_features:
388 self.assertTrue(smtp.has_extn(k))
389 self.assertFalse(smtp.has_extn('unsupported-feature'))
390 smtp.quit()
391
392 def testVRFY(self):
Trent Nelsone41b0062008-04-08 23:47:30 +0000393 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000394
395 for email, name in sim_users.items():
396 expected_known = (250, '%s %s' % (name, smtplib.quoteaddr(email)))
397 self.assertEqual(smtp.vrfy(email), expected_known)
398
399 u = 'nobody@nowhere.com'
400 expected_unknown = (550, 'No such user: %s' % smtplib.quoteaddr(u))
401 self.assertEqual(smtp.vrfy(u), expected_unknown)
402 smtp.quit()
403
404 def testEXPN(self):
Trent Nelsone41b0062008-04-08 23:47:30 +0000405 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000406
407 for listname, members in sim_lists.items():
408 users = []
409 for m in members:
410 users.append('%s %s' % (sim_users[m], smtplib.quoteaddr(m)))
411 expected_known = (250, '\n'.join(users))
412 self.assertEqual(smtp.expn(listname), expected_known)
413
414 u = 'PSU-Members-List'
415 expected_unknown = (550, 'No access for you!')
416 self.assertEqual(smtp.expn(u), expected_unknown)
417 smtp.quit()
418
R. David Murray3724d6c2009-05-23 21:48:06 +0000419 def testAUTH(self):
420 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
421
422 expected_auth_ok = (235, b'ok, go ahead')
423 self.assertEqual(smtp.login(sim_auth[0], sim_auth[1]), expected_auth_ok)
Facundo Batista1bc8d632007-08-21 16:57:18 +0000424
425
Facundo Batista366d6262007-03-28 18:25:54 +0000426def test_main(verbose=None):
Facundo Batista412b8b62007-08-01 23:18:36 +0000427 test_support.run_unittest(GeneralTests, DebuggingServerTests,
Neal Norwitz75992ed2008-02-26 08:04:59 +0000428 NonConnectingTests,
Facundo Batista1bc8d632007-08-21 16:57:18 +0000429 BadHELOServerTests, SMTPSimTests)
Facundo Batista366d6262007-03-28 18:25:54 +0000430
431if __name__ == '__main__':
432 test_main()