A budget, a referendum and a leadership contest