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())
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())