def METHOD_NAME():
    """
    Tests stopping a VM that is running.
    """
    ret = {}
    ret["stdout"] = ""
    ret["stderr"] = "vmctl: sent request to terminate vm 14"
    ret["retcode"] = 0
    mock_cmd = MagicMock(return_value=ret)
    with patch.dict(vmctl.__salt__, {"cmd.run_all": mock_cmd}):
        res = vmctl.stop("web1")
        mock_cmd.assert_called_once_with(
            ["vmctl", "stop", "web1"], output_loglevel="trace", python_shell=False
        )
        assert res["changes"]