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

Method _testBCM

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

Source from the content-addressed store, hash-verified

2387 @unittest.skipUnless(hasattr(socket, "CAN_BCM"),
2388 'socket.CAN_BCM required for this test.')
2389 def _testBCM(self):
2390 cf, addr = self.cli.recvfrom(self.bufsize)
2391 self.assertEqual(self.cf, cf)
2392 can_id, can_dlc, data = self.dissect_can_frame(cf)
2393 self.assertEqual(self.can_id, can_id)
2394 self.assertEqual(self.data, data)
2395
2396 @unittest.skipUnless(hasattr(socket, "CAN_BCM"),
2397 'socket.CAN_BCM required for this test.')

Callers

nothing calls this directly

Calls 3

dissect_can_frameMethod · 0.95
recvfromMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected