def METHOD_NAME(mocker, srv, caplog):
    item = Item(target="test", addrs=["localhost", 2003], message="42.42", 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(mock.ANY),
        call().close(),
    ]
    assert outcome is True
    assert "Sending to carbon: ohno 42.42" in caplog.text