@pytest.mark.parametrize(argnames=['node_id', 'timeout', 'sensor'], argvalues=[[NodeId.pipette_left, 1, lazy_fixture('pressure_sensor')], [NodeId.pipette_left, 5, lazy_fixture('capacitive_sensor')]])
async def test_bind_to_sync(mock_messenger: mock.AsyncMock, can_message_notifier: MockCanMessageNotifier, sensor: sensor_abc.AbstractAdvancedSensor, node_id: NodeId, timeout: int) -> None:
    'Test for bind_to_sync.\n\n    Tests that bind_to_sync does in fact\n    send out a BindSensorOutputRequest.\n    '
    async with sensor.bind_output(mock_messenger, node_id, SensorOutputBinding.sync):
        mock_messenger.send.assert_called_with(node_id=node_id, message=BindSensorOutputRequest(payload=BindSensorOutputRequestPayload(sensor=SensorTypeField(sensor._sensor_type), sensor_id=SensorIdField(SensorId.S0), binding=SensorOutputBindingField(SensorOutputBinding.sync))))
    mock_messenger.send.assert_called_with(node_id=node_id, message=BindSensorOutputRequest(payload=BindSensorOutputRequestPayload(sensor=SensorTypeField(sensor._sensor_type), sensor_id=SensorIdField(SensorId.S0), binding=SensorOutputBindingField(SensorOutputBinding.none))))
Test for bind_to_sync.

Tests that bind_to_sync does in fact
send out a BindSensorOutputRequest.
@pytest.mark.parametrize(argnames=['node_id', 'timeout', 'sensor'], argvalues=[[NodeId.pipette_left, 1, lazy_fixture('pressure_sensor')], [NodeId.pipette_left, 5, lazy_fixture('capacitive_sensor')]])
async def test_bind_to_sync(mock_messenger: mock.AsyncMock, can_message_notifier: MockCanMessageNotifier, sensor: sensor_abc.AbstractAdvancedSensor, node_id: NodeId, timeout: int) -> None:
    'Test for bind_to_sync.\n\n    Tests that bind_to_sync does in fact\n    send out a BindSensorOutputRequest.\n    '
    async with sensor.bind_output(mock_messenger, node_id, SensorOutputBinding.sync):
        mock_messenger.send.assert_called_with(node_id=node_id, message=BindSensorOutputRequest(payload=BindSensorOutputRequestPayload(sensor=SensorTypeField(sensor._sensor_type), sensor_id=SensorIdField(SensorId.S0), binding=SensorOutputBindingField(SensorOutputBinding.sync))))
    mock_messenger.send.assert_called_with(node_id=node_id, message=BindSensorOutputRequest(payload=BindSensorOutputRequestPayload(sensor=SensorTypeField(sensor._sensor_type), sensor_id=SensorIdField(SensorId.S0), binding=SensorOutputBindingField(SensorOutputBinding.none))))