예제 #1
0
 def testRepr(self):
     result = repr(self.canbus_raw)
     known_result = "CAN bus 'bus1' on CAN interface: {}, having 2 frameIDs defined. Protocol RAW".format(
         VIRTUAL_CAN_BUS_NAME.strip())
     self.assertEqual(result.strip(), known_result.strip())
예제 #2
0
 def testRepr(self):
     result = repr(self.interface)
     known_result = "SocketCan BCM interface: {}".format(VIRTUAL_CAN_BUS_NAME.strip())
     self.assertEqual(result.strip(), known_result.strip())
예제 #3
0
 def testRepr(self):
     result = repr(self.canbus_raw)
     known_result = "CAN bus 'bus1' on CAN interface: {}, having 2 frameIDs defined. Protocol RAW".format(
         VIRTUAL_CAN_BUS_NAME.strip())
     self.assertEqual(result.strip(), known_result.strip())