(self)
| 6264 | SocketConnectedTest.__init__(self, methodName=methodName) |
| 6265 | |
| 6266 | def testRecvIntoArray(self): |
| 6267 | buf = array.array("B", [0] * len(MSG)) |
| 6268 | nbytes = self.cli_conn.recv_into(buf) |
| 6269 | self.assertEqual(nbytes, len(MSG)) |
| 6270 | buf = buf.tobytes() |
| 6271 | msg = buf[:len(MSG)] |
| 6272 | self.assertEqual(msg, MSG) |
| 6273 | |
| 6274 | def _testRecvIntoArray(self): |
| 6275 | buf = bytes(MSG) |
nothing calls this directly
no test coverage detected