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

Method testRSET

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

Source from the content-addressed store, hash-verified

310 smtp.quit()
311
312 def testRSET(self):
313 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
314 timeout=support.LOOPBACK_TIMEOUT)
315 self.addCleanup(smtp.close)
316 expected = (250, b'OK')
317 self.assertEqual(smtp.rset(), expected)
318 smtp.quit()
319
320 def testELHO(self):
321 # EHLO isn't implemented in DebuggingServer

Callers

nothing calls this directly

Calls 4

rsetMethod · 0.95
quitMethod · 0.95
addCleanupMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected