def METHOD_NAME():
    """
    Tests if the gid is already in use or not
    """
    with patch("salt.modules.mac_group.info", MagicMock(return_value={})), patch(
        "salt.modules.mac_group._list_gids", MagicMock(return_value=["3456"])
    ):
        pytest.raises(CommandExecutionError, mac_group.add, "foo", 3456)