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

Method testLocalHostName

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

Source from the content-addressed store, hash-verified

98 client.close()
99
100 def testLocalHostName(self):
101 mock_socket.reply_with(b"220 Hola mundo")
102 # check that supplied local_hostname is used
103 client = self.client(HOST, self.port, local_hostname="testhost")
104 self.assertEqual(client.local_hostname, "testhost")
105 client.close()
106
107 def testTimeoutDefault(self):
108 mock_socket.reply_with(b"220 Hola mundo")

Callers

nothing calls this directly

Calls 3

clientMethod · 0.45
assertEqualMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected