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

Method testTimeoutValue

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

Source from the content-addressed store, hash-verified

133 self.client(HOST, self.port, timeout=0)
134
135 def testTimeoutValue(self):
136 mock_socket.reply_with(b"220 Hola mundo")
137 client = self.client(HOST, self.port, timeout=30)
138 self.assertEqual(client.sock.gettimeout(), 30)
139 client.close()
140
141 def test_debuglevel(self):
142 mock_socket.reply_with(b"220 Hello world")

Callers

nothing calls this directly

Calls 4

clientMethod · 0.45
assertEqualMethod · 0.45
gettimeoutMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected