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

Method testRecvFrom

Lib/test/test_socket.py:3211–3214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3209 self.cli.sendto(MSG, 0, (HOST, self.port))
3210
3211 def testRecvFrom(self):
3212 # Testing recvfrom() over UDP
3213 msg, addr = self.serv.recvfrom(len(MSG))
3214 self.assertEqual(msg, MSG)
3215
3216 def _testRecvFrom(self):
3217 self.cli.sendto(MSG, 0, (HOST, self.port))

Callers

nothing calls this directly

Calls 2

recvfromMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected