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

Method testSourceAddress

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

Source from the content-addressed store, hash-verified

84 client.close()
85
86 def testSourceAddress(self):
87 mock_socket.reply_with(b"220 Hola mundo")
88 # connects
89 client = self.client(HOST, self.port,
90 source_address=('127.0.0.1',19876))
91 self.assertEqual(client.source_address, ('127.0.0.1', 19876))
92 client.close()
93
94 def testBasic2(self):
95 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