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

Method testVRFY

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

Source from the content-addressed store, hash-verified

347 smtp.quit()
348
349 def testVRFY(self):
350 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
351 timeout=support.LOOPBACK_TIMEOUT)
352 self.addCleanup(smtp.close)
353 expected = (252, b'Cannot VRFY user, but will accept message ' + \
354 b'and attempt delivery')
355 self.assertEqual(smtp.vrfy('nobody@nowhere.com'), expected)
356 self.assertEqual(smtp.verify('nobody@nowhere.com'), expected)
357 smtp.quit()
358
359 def testSecondHELO(self):
360 # check that a second HELO returns a message that it's a duplicate

Callers

nothing calls this directly

Calls 4

verifyMethod · 0.95
quitMethod · 0.95
addCleanupMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected