MCPcopy Index your code
hub / github.com/python/cpython / testELHO

Method testELHO

Lib/test/test_smtplib.py:320–327  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

318 smtp.quit()
319
320 def testELHO(self):
321 # EHLO isn't implemented in DebuggingServer
322 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
323 timeout=support.LOOPBACK_TIMEOUT)
324 self.addCleanup(smtp.close)
325 expected = (250, b'\nSIZE 33554432\nHELP')
326 self.assertEqual(smtp.ehlo(), expected)
327 smtp.quit()
328
329 def testEXPNNotImplemented(self):
330 # EXPN isn't implemented in DebuggingServer

Callers

nothing calls this directly

Calls 4

ehloMethod · 0.95
quitMethod · 0.95
addCleanupMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected