def METHOD_NAME():
    """
    Tests the gid for a named group was changed
    """
    mock_group = {"passwd": "*", "gid": 0, "name": "test", "members": ["root"]}
    mock_pre_gid = MagicMock(return_value=0)
    mock_ret = MagicMock(return_value=0)
    with patch.dict(
        mac_group.__salt__, {"file.group_to_gid": mock_pre_gid}
    ), patch.dict(mac_group.__salt__, {"cmd.retcode": mock_ret}), patch(
        "salt.modules.mac_group.info", MagicMock(return_value=mock_group)
    ):
        assert mac_group.chgid("test", 500)