def send(self, command, *parameters): Axis.send(self, command, *parameters) if command is TELL_SWITCHES: return self._mock_switches() if command is MOTOR_TYPE: return 2.5 if command is CONFIGURE_ENCODER: return 14