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

Method testPeek

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

Source from the content-addressed store, hash-verified

2607 self.cli.sendto(self.data, 0, (HOST, self.port))
2608
2609 def testPeek(self):
2610 data, addr = self.serv.recvfrom(self.bufsize, socket.MSG_PEEK)
2611 self.assertEqual(self.data, data)
2612 data, addr = self.serv.recvfrom(self.bufsize)
2613 self.assertEqual(self.data, data)
2614
2615 def _testPeek(self):
2616 self.data = b'spam'

Callers

nothing calls this directly

Calls 2

recvfromMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected