def METHOD_NAME():
    """
    Tests getting status for all VMs.
    """
    ret = {}
    ret["stdout"] = (
        "   ID   PID VCPUS  MAXMEM  CURMEM     TTY        OWNER NAME\n"
        "    1   123     1    2.9G     150M  ttyp5       john web1 - stopping\n"
        "    2   456     1    512M     301M  ttyp4       paul web2\n"
        "    3     -     1    512M       -       -       george web3\n"
    )
    ret["retcode"] = 0
    mock_cmd = MagicMock(return_value=ret)
    expected = {
        "web1": {
            "curmem": "150M",
            "id": "1",
            "maxmem": "2.9G",
            "owner": "john",
            "pid": "123",
            "state": "stopping",
            "tty": "ttyp5",
            "vcpus": "1",
        },
        "web2": {
            "curmem": "301M",
            "id": "2",
            "maxmem": "512M",
            "owner": "paul",
            "pid": "456",
            "state": "running",
            "tty": "ttyp4",
            "vcpus": "1",
        },
        "web3": {
            "curmem": "-",
            "id": "3",
            "maxmem": "512M",
            "owner": "george",
            "pid": "-",
            "state": "stopped",
            "tty": "-",
            "vcpus": "1",
        },
    }
    with patch.dict(vmctl.__salt__, {"cmd.run_all": mock_cmd}):
        assert vmctl.status() == expected