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

Method testTimeoutZero

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

Source from the content-addressed store, hash-verified

128 client.close()
129
130 def testTimeoutZero(self):
131 mock_socket.reply_with(b"220 Hola mundo")
132 with self.assertRaises(ValueError):
133 self.client(HOST, self.port, timeout=0)
134
135 def testTimeoutValue(self):
136 mock_socket.reply_with(b"220 Hola mundo")

Callers 1

testTimeoutZeroMethod · 0.45

Calls 2

assertRaisesMethod · 0.45
clientMethod · 0.45

Tested by

no test coverage detected