def METHOD_NAME(mocker, srv, caplog):
    item = Item(
        target="test",
        addrs=["localhost", 2003],
        message="foo 42.42 1623887596",
        data={},
    )
    module = load_module_from_file("mqttwarn/services/carbon.py")
    socket_mock = mocker.patch("socket.socket")
    outcome = module.plugin(srv, item)
    assert socket_mock.mock_calls == [
        call(),
        call().connect(("localhost", 2003)),
        call().sendall("foo 42.42 1623887596\n"),
        call().close(),
    ]
    assert outcome is True
    assert "Sending to carbon: foo 42.42 1623887596" in caplog.messages