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

Method testHELP

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

Source from the content-addressed store, hash-verified

368 smtp.quit()
369
370 def testHELP(self):
371 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
372 timeout=support.LOOPBACK_TIMEOUT)
373 self.addCleanup(smtp.close)
374 self.assertEqual(smtp.help(), b'Supported commands: EHLO HELO MAIL ' + \
375 b'RCPT DATA RSET NOOP QUIT VRFY')
376 smtp.quit()
377
378 def testSend(self):
379 # connect and send mail

Callers

nothing calls this directly

Calls 4

helpMethod · 0.95
quitMethod · 0.95
addCleanupMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected