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

Method testEXPNNotImplemented

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

Source from the content-addressed store, hash-verified

327 smtp.quit()
328
329 def testEXPNNotImplemented(self):
330 # EXPN isn't implemented in DebuggingServer
331 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
332 timeout=support.LOOPBACK_TIMEOUT)
333 self.addCleanup(smtp.close)
334 expected = (502, b'EXPN not implemented')
335 smtp.putcmd('EXPN')
336 self.assertEqual(smtp.getreply(), expected)
337 smtp.quit()
338
339 def test_issue43124_putcmd_escapes_newline(self):
340 # see: https://bugs.python.org/issue43124

Callers

nothing calls this directly

Calls 5

putcmdMethod · 0.95
getreplyMethod · 0.95
quitMethod · 0.95
addCleanupMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected