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

Method testNOOP

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

Source from the content-addressed store, hash-verified

302 raise
303
304 def testNOOP(self):
305 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
306 timeout=support.LOOPBACK_TIMEOUT)
307 self.addCleanup(smtp.close)
308 expected = (250, b'OK')
309 self.assertEqual(smtp.noop(), expected)
310 smtp.quit()
311
312 def testRSET(self):
313 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',

Callers

nothing calls this directly

Calls 4

noopMethod · 0.95
quitMethod · 0.95
addCleanupMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected