mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
fix test to run and test that smtpd does support ELHO (closes #19125)
This commit is contained in:
parent
05ab7028ba
commit
1eca062be6
1 changed files with 3 additions and 3 deletions
|
|
@ -239,14 +239,14 @@ class DebuggingServerTests(unittest.TestCase):
|
||||||
self.assertEqual(smtp.rset(), expected)
|
self.assertEqual(smtp.rset(), expected)
|
||||||
smtp.quit()
|
smtp.quit()
|
||||||
|
|
||||||
def testNotImplemented(self):
|
def testELHO(self):
|
||||||
# EHLO isn't implemented in DebuggingServer
|
# EHLO isn't implemented in DebuggingServer
|
||||||
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
|
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)
|
self.assertEqual(smtp.ehlo(), expected)
|
||||||
smtp.quit()
|
smtp.quit()
|
||||||
|
|
||||||
def testNotImplemented(self):
|
def testEXPNNotImplemented(self):
|
||||||
# EXPN isn't implemented in DebuggingServer
|
# EXPN isn't implemented in DebuggingServer
|
||||||
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
|
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
|
||||||
expected = (502, b'EXPN not implemented')
|
expected = (502, b'EXPN not implemented')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue