summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-09-29 14:46:31 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-09-29 14:46:31 (GMT)
commit1eca062be691af2fe82724c9c5c5acbfc7ed72f8 (patch)
tree550d9fb1d4d2a96138657406949c6e9c8d7f4326 /Lib
parent05ab7028ba6dff61fee138fee395c20106f83a6f (diff)
downloadcpython-1eca062be691af2fe82724c9c5c5acbfc7ed72f8.zip
cpython-1eca062be691af2fe82724c9c5c5acbfc7ed72f8.tar.gz
cpython-1eca062be691af2fe82724c9c5c5acbfc7ed72f8.tar.bz2
fix test to run and test that smtpd does support ELHO (closes #19125)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_smtplib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
index f93d355..8d1dbbf 100644
--- a/Lib/test/test_smtplib.py
+++ b/Lib/test/test_smtplib.py
@@ -239,14 +239,14 @@ class DebuggingServerTests(unittest.TestCase):
self.assertEqual(smtp.rset(), expected)
smtp.quit()
- def testNotImplemented(self):
+ def testELHO(self):
# EHLO isn't implemented in DebuggingServer
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
- expected = (502, b'Error: command "EHLO" not implemented')
+ expected = (250, b'\nSIZE 33554432\nHELP')
self.assertEqual(smtp.ehlo(), expected)
smtp.quit()
- def testNotImplemented(self):
+ def testEXPNNotImplemented(self):
# EXPN isn't implemented in DebuggingServer
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
expected = (502, b'EXPN not implemented')